aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Petrashko <dark@d-d.me>2015-05-22 13:16:20 +0200
committerDmitry Petrashko <dark@d-d.me>2015-05-22 13:16:20 +0200
commit4f27848d63bd388caeea86c032c85ecc2c5d31fe (patch)
treec9675974004dbe1c6ce16631f3eabeee129caa3a
parent76c639283934faef5d3a9fd86bbaa6417aa2c8b2 (diff)
parentccbbe261b7ba2d41b01ca1df1d4655e07086b088 (diff)
downloaddotty-4f27848d63bd388caeea86c032c85ecc2c5d31fe.tar.gz
dotty-4f27848d63bd388caeea86c032c85ecc2c5d31fe.tar.bz2
dotty-4f27848d63bd388caeea86c032c85ecc2c5d31fe.zip
Merge pull request #593 from dotty-staging/fix-intellij
Clone scala/scala to ./scala-scala instead of ./scala
-rwxr-xr-xscripts/common6
-rwxr-xr-xscripts/jobs/validate/junit2
-rw-r--r--test/test/ScannerTest.scala2
-rw-r--r--test/test/desugarPackage.scala2
-rw-r--r--test/test/parsePackage.scala2
5 files changed, 7 insertions, 7 deletions
diff --git a/scripts/common b/scripts/common
index 6386ab2f5..50b13f8d7 100755
--- a/scripts/common
+++ b/scripts/common
@@ -2,12 +2,12 @@ update() {
[[ -d $baseDir ]] || mkdir -p $baseDir
cd $baseDir
- if [ ! -d $baseDir/$2 ]; then git clone "https://github.com/$1/$2.git"; fi
+ if [ ! -d $baseDir/$3 ]; then git clone "https://github.com/$1/$2.git" $3; fi
- cd $2
+ cd $3
git fetch --tags "https://github.com/$1/$2.git"
- (git fetch "https://github.com/$1/$2.git" $3 && git checkout -fq FETCH_HEAD) #|| git checkout -fq $3 # || fallback is for local testing on tag
+ (git fetch "https://github.com/$1/$2.git" $4 && git checkout -fq FETCH_HEAD) #|| git checkout -fq $4 # || fallback is for local testing on tag
git reset --hard
}
diff --git a/scripts/jobs/validate/junit b/scripts/jobs/validate/junit
index 9748c3f5f..36078c170 100755
--- a/scripts/jobs/validate/junit
+++ b/scripts/jobs/validate/junit
@@ -4,5 +4,5 @@ baseDir=${WORKSPACE-`pwd`}
scriptsDir="$baseDir/scripts"
. $scriptsDir/common
-update scala scala
+update scala scala scala-scala
sbt $sbtArgs update compile test
diff --git a/test/test/ScannerTest.scala b/test/test/ScannerTest.scala
index 38835e4a0..f8f09ff6f 100644
--- a/test/test/ScannerTest.scala
+++ b/test/test/ScannerTest.scala
@@ -58,6 +58,6 @@ class ScannerTest extends DottyTest {
@Test
def scanScala() = {
- scanDir("./scala/src")
+ scanDir("./scala-scala/src")
}
}
diff --git a/test/test/desugarPackage.scala b/test/test/desugarPackage.scala
index b93dcb3e4..7f56e470b 100644
--- a/test/test/desugarPackage.scala
+++ b/test/test/desugarPackage.scala
@@ -11,7 +11,7 @@ object desugarPackage extends DeSugarTest {
val start = System.nanoTime()
val startNodes = Trees.ntrees
parseDir("./src")
- parseDir("./scala/src")
+ parseDir("./scala-scala/src")
val ms1 = (System.nanoTime() - start)/1000000
val nodes = Trees.ntrees
val buf = parsedTrees map desugarTree
diff --git a/test/test/parsePackage.scala b/test/test/parsePackage.scala
index 0bbf1e9c3..bef7bbe06 100644
--- a/test/test/parsePackage.scala
+++ b/test/test/parsePackage.scala
@@ -66,7 +66,7 @@ object parsePackage extends ParserTest {
nodes = 0
val start = System.nanoTime()
parseDir("./src")
- parseDir("./scala/src")
+ parseDir("./scala-scala/src")
val ms1 = (System.nanoTime() - start)/1000000
val buf = parsedTrees map transformer.transform
val ms2 = (System.nanoTime() - start)/1000000