Skip to content

Commit dd31821

Browse files
committed
Travis-CI build matrix for cross-building
1 parent e33faf8 commit dd31821

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.ci_scripts/validate.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -e
44

55
echo "[INFO] Check the source format"
66

7-
sbt scalafmt test:scalafmt > /dev/null
7+
sbt ++$TRAVIS_SCALA_VERSION scalafmt test:scalafmt > /dev/null
88
git diff --exit-code || (cat >> /dev/stdout <<EOF
99
[ERROR] Scalafmt check failed, see differences above.
1010
To fix, format your sources using sbt scalafmt test:scalafmt before submitting a pull request.
@@ -15,4 +15,4 @@ false
1515

1616
echo "[INFO] Running tests" >> /dev/stdout
1717

18-
sbt clean +test
18+
sbt ++$TRAVIS_SCALA_VERSION test

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
sudo: false
22
language: scala
3+
scala:
4+
- 2.12.7
5+
- 2.11.12
36
jdk:
47
- oraclejdk8
58
cache:

0 commit comments

Comments
 (0)