Skip to content

Commit 4bac1a5

Browse files
committed
Merge pull request #591 from dotty-staging/scala-infra
Make dotty use scala-infra for CI.
2 parents 3dcb286 + 371a60c commit 4bac1a5

File tree

8 files changed

+41
-3
lines changed

8 files changed

+41
-3
lines changed

scripts/common

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
update() {
2+
[[ -d $baseDir ]] || mkdir -p $baseDir
3+
cd $baseDir
4+
5+
if [ ! -d $baseDir/$2 ]; then git clone "https://github.com/$1/$2.git"; fi
6+
7+
cd $2
8+
9+
git fetch --tags "https://github.com/$1/$2.git"
10+
(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
11+
git reset --hard
12+
}
13+
14+
sbtArgs="-Ddotty.travis.build=yes -ivy $baseDir/ivy2 -Dsbt.global.base=$HOME/.sbt/0.13 -sbt-dir $HOME/.sbt/0.13"

scripts/jobs/validate/junit

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash -e
2+
3+
baseDir=${WORKSPACE-`pwd`}
4+
scriptsDir="$baseDir/scripts"
5+
. $scriptsDir/common
6+
7+
update scala scala
8+
sbt $sbtArgs update compile test

scripts/jobs/validate/partest

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash -e
2+
3+
baseDir=${WORKSPACE-`pwd`}
4+
scriptsDir="$baseDir/scripts"
5+
. $scriptsDir/common
6+
7+
sbt $sbtArgs update compile "partest run"
8+

scripts/jobs/validate/scalastyle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash -e
2+
3+
baseDir=${WORKSPACE-`pwd`}
4+
scriptsDir="$baseDir/scripts"
5+
. $scriptsDir/common
6+
7+
sbt $sbtArgs scalastyle
8+

test/test/ScannerTest.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,6 @@ class ScannerTest extends DottyTest {
5858

5959
@Test
6060
def scanScala() = {
61-
scanDir("../scala/src")
61+
scanDir("./scala/src")
6262
}
6363
}

test/test/desugarPackage.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ object desugarPackage extends DeSugarTest {
1111
val start = System.nanoTime()
1212
val startNodes = Trees.ntrees
1313
parseDir("./src")
14-
parseDir("../scala/src")
14+
parseDir("./scala/src")
1515
val ms1 = (System.nanoTime() - start)/1000000
1616
val nodes = Trees.ntrees
1717
val buf = parsedTrees map desugarTree

test/test/parsePackage.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ object parsePackage extends ParserTest {
6666
nodes = 0
6767
val start = System.nanoTime()
6868
parseDir("./src")
69-
parseDir("../scala/src")
69+
parseDir("./scala/src")
7070
val ms1 = (System.nanoTime() - start)/1000000
7171
val buf = parsedTrees map transformer.transform
7272
val ms2 = (System.nanoTime() - start)/1000000

0 commit comments

Comments
 (0)