Skip to content

Commit 0199dc4

Browse files
committed
Integrating with scala-infra for CI.
See scala/scala-jenkins-infra#56
1 parent 3dcb286 commit 0199dc4

File tree

4 files changed

+31
-0
lines changed

4 files changed

+31
-0
lines changed

scripts/common

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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+

scripts/jobs/validate/junit

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
baseDir=${WORKSPACE-`pwd`}
2+
scriptsDir="$baseDir/scripts"
3+
. $scriptsDir/common
4+
5+
update scala scala
6+
sbt -Ddotty.travis.build=yes update compile test

scripts/jobs/validate/partest

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
baseDir=${WORKSPACE-`pwd`}
2+
scriptsDir="$baseDir/scripts"
3+
. $scriptsDir/common
4+
5+
sbt -Ddotty.travis.build=yes update compile "partest run"
6+

scripts/jobs/validate/scalastyle

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

0 commit comments

Comments
 (0)