Skip to content

Commit 81df6c0

Browse files
committed
Run the TravisCI build not only on Linux but also on OSX in order to illustrate the build matrix concept
1 parent 03e51e2 commit 81df6c0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ jdk:
77

88
os:
99
- linux
10+
- osx
1011

1112
before_cache:
1213
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
@@ -17,6 +18,11 @@ cache:
1718
- $HOME/.gradle/caches/
1819
- $HOME/.gradle/wrapper/
1920

21+
# Run commands before TravisCI install step only in some cases
22+
# More info: https://docs.travis-ci.com/user/multi-os/#example-multi-os-build-matrix
23+
before_install:
24+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
25+
2026
# Override default install process on TravisCI
2127
# Avoid default `gradlew assemble` execution. Be explicit about it on the `script` section.
2228
# More info: https://github.com/travis-ci/travis-ci/issues/8667

0 commit comments

Comments
 (0)