Add macOS testing

This commit is contained in:
Eugene Yokota 2018-02-15 13:02:03 -05:00
parent 31b42c0e18
commit 66b8670c59
1 changed files with 20 additions and 6 deletions

View File

@ -12,18 +12,30 @@ matrix:
- script: - script:
- sbt -Dsbt.build.version=$SBT_VER universal:packageBin - sbt -Dsbt.build.version=$SBT_VER universal:packageBin
- cd citest && ./test.sh - cd citest && ./test.sh
jdk: oraclejdk8
## build using JDK 8, test using JDK 8, on macOS
- script:
- sbt -Dsbt.build.version=$SBT_VER universal:packageBin
- cd citest && ./test.sh
## https://github.com/travis-ci/travis-ci/issues/2316
language: java
os: osx
osx_image: xcode9.2
## build using JDK 8, test using JDK 9 ## build using JDK 8, test using JDK 9
- script: - script:
- sbt -Dsbt.build.version=$SBT_VER universal:packageBin - sbt -Dsbt.build.version=$SBT_VER universal:packageBin
- jdk_switcher use oraclejdk9 - jdk_switcher use oraclejdk9
- cd citest && ./test.sh - cd citest && ./test.sh
jdk: oraclejdk8
## build using JDK 8, test using JDK 10 ## build using JDK 8, test using JDK 10
- script: - script:
- sbt -Dsbt.build.version=$SBT_VER universal:packageBin - sbt -Dsbt.build.version=$SBT_VER universal:packageBin
- citest/install-jdk10.sh - citest/install-jdk10.sh
- cd citest && ./test.sh - cd citest && ./test.sh
jdk: oraclejdk8
- script: - script:
- sbt -Dsbt.build.version=$SBT_VER rpm:packageBin debian:packageBin - sbt -Dsbt.build.version=$SBT_VER rpm:packageBin debian:packageBin
@ -32,16 +44,18 @@ matrix:
packages: packages:
- fakeroot - fakeroot
- rpm - rpm
jdk: oraclejdk8
scala: scala:
- 2.10.7 - 2.10.7
jdk: before_install:
- oraclejdk8 # https://github.com/travis-ci/travis-ci/issues/8408
- unset _JAVA_OPTIONS
# Undo _JAVA_OPTIONS environment variable - if [[ "$TRAVIS_OS_NAME" = "osx" ]]; then
before_script: brew update;
- _JAVA_OPTIONS= brew install sbt;
fi
cache: cache:
directories: directories: