Skip to content

Commit d651c95

Browse files
authored
Merge pull request sbt#6077 from eed3si9n/wip/build
Migrate to GitHub Actions
2 parents 5e9677e + 3d02f89 commit d651c95

File tree

4 files changed

+47
-60
lines changed

4 files changed

+47
-60
lines changed

.github/workflows/ci.yml

+46-4
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,28 @@ jobs:
99
matrix:
1010
include:
1111
- os: ubuntu-latest
12-
java: 8
12+
java: 11
1313
jobtype: 1
1414
- os: ubuntu-latest
1515
java: 11
16-
jobtype: 1
16+
jobtype: 2
17+
- os: ubuntu-latest
18+
java: 11
19+
jobtype: 3
20+
- os: ubuntu-latest
21+
java: 11
22+
jobtype: 4
23+
- os: ubuntu-latest
24+
java: 8
25+
jobtype: 5
1726
runs-on: ${{ matrix.os }}
1827
env:
19-
JAVA_OPTS: -Xms2048M -Xmx2048M -Xss6M -XX:ReservedCodeCacheSize=256M
28+
JAVA_OPTS: -Xms800M -Xmx800M -Xss6M -XX:ReservedCodeCacheSize=128M -server -Dsbt.io.virtual=false -Dfile.encoding=UTF-8
29+
SCALA_212: 2.12.12
30+
SCALA_213: 2.13.1
31+
UTIL_TESTS: utilCache/test;utilControl/test;utilInterface/test;utilLogging/test;utilPosition/test;utilRelation/test;utilScripted/test;utilTracking/test
32+
CURRENT_SNAPSHOT_VER: 1.4.3-SNAPSHOT
33+
SBT_LOCAL: false
2034
steps:
2135
- name: Checkout
2236
uses: actions/checkout@v1
@@ -32,4 +46,32 @@ jobs:
3246
path: ~/.sbt
3347
key: ${{ runner.os }}-sbt-cache-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
3448
- name: Build and test
35-
run: echo hello GitHub
49+
run: |
50+
case ${{ matrix.jobtype }} in
51+
1)
52+
sbt -v "mimaReportBinaryIssues ; javafmtCheck ; Test / javafmtCheck; scalafmtCheckAll ; scalafmtSbtCheck; serverTestProj/scalafmtCheckAll; headerCheck ;test:headerCheck ;whitesourceOnPush ;test:compile; publishLocal; test; serverTestProj/test; doc; $UTIL_TESTS; ++$SCALA_213; $UTIL_TESTS"
53+
;;
54+
2)
55+
sbt -v "scripted actions/* apiinfo/* compiler-project/* ivy-deps-management/* reporter/* tests/* watch/* classloader-cache/* package/*"
56+
;;
57+
3)
58+
sbt -v "dependencyTreeProj/publishLocal; scripted dependency-graph/* dependency-management/* plugins/* project-load/* java/* run/* nio/*"
59+
;;
60+
4)
61+
sbt -v "repoOverrideTest:scripted dependency-management/*; scripted source-dependencies/* project/*"
62+
;;
63+
5)
64+
sbt -v publishLocalBin
65+
rm -r $(find $HOME/.sbt/boot -name "*-SNAPSHOT") || true
66+
sbt -v -Dsbt.version=$CURRENT_SNAPSHOT_VER "++$SCALA_213; $UTIL_TESTS; ++$SCALA_212; $UTIL_TESTS; scripted actions/* source-dependencies/*1of3 dependency-management/*1of4 java/*"
67+
;;
68+
*)
69+
echo unknown jobtype
70+
exit 1
71+
esac
72+
rm -rf "$HOME/.ivy2/local" || true
73+
rm -r $(find $HOME/.sbt/boot -name "*-SNAPSHOT") || true
74+
find $HOME/Library/Caches/Coursier/v1 -name "ivydata-*.properties" -delete || true
75+
find $HOME/.ivy2/cache -name "ivydata-*.properties" -delete || true
76+
find $HOME/.cache/coursier/v1 -name "ivydata-*.properties" -delete || true
77+
find $HOME/.sbt -name "*.lock" -delete || true

.travis.yml

-56
This file was deleted.

sbt/src/sbt-test/dependency-management/snapshot-resolution/test

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Validate that a bad dependency fails the compile
22
$ copy-file changes/BadCommon.scala common/src/main/scala/Common.scala
3+
> common/compile
34
> common/publish
45

56
# Force dep resolution to be successful, then compilation to fail

0 commit comments

Comments
 (0)