Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run Travis build on macOS #1178

Merged
merged 1 commit into from
Sep 18, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 24 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ env:
global:
# for CodeClimate
- CC_TEST_REPORTER_ID=83a2e05f875e3a67f60a1969f20a558a3de03a7592052c8bf52807d0e317f01a
os:
- linux
- osx
language: java
jdk:
- oraclejdk8
Expand All @@ -27,24 +30,40 @@ jdk:
# - openjdk6 # gradle 3.1 requires java 7

matrix:
exclude:
- os: macos
jdk: oraclejdk8
- os: macos
jdk: openjdk7
- os: macos
jdk: openjdk8
- os: macos
jdk: openjdk9
- os: macos
jdk: openjdk10
allow_failures:
- jdk: oraclejdk-ea
- jdk: openjdk7
- jdk: oraclejdk8
- jdk: oraclejdk11
- jdk: openjdk15
- jdk: openjdk-ea
# - openjdk7 # Disabled to avoid error java.security.NoSuchProviderException: no such provider: SunEC...

install: skip
before_script:
- chmod +x gradlew
# for CodeClimate
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
- |
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter &&
chmod +x ./cc-test-reporter &&
./cc-test-reporter before-build
fi
script:
- ./gradlew check --info --stacktrace
after_success:
- bash <(curl -s https://codecov.io/bash)
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
- |
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
fi