Skip to content

Commit 8594c43

Browse files
author
Vladimir Kotal
committed
enable macOS (nee OS X) builds
fixes #1968 Ref: travis-ci/travis-ci#8829
1 parent 5a11068 commit 8594c43

File tree

1 file changed

+28
-17
lines changed

1 file changed

+28
-17
lines changed

.travis.yml

Lines changed: 28 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,47 @@
1-
dist: trusty
2-
sudo: required
31
language: java
4-
jdk:
5-
- oraclejdk8
62
cache:
73
directories:
84
- $HOME/.m2
5+
matrix:
6+
include:
7+
- os: linux
8+
dist: trusty
9+
sudo: required
10+
jdk: oraclejdk8
11+
- os: osx
12+
osx_image: xcode7.3
913
before_install:
10-
- sudo apt-get update -qq
11-
- sudo apt-get install -qq exuberant-ctags cvs git mercurial cssc bzr subversion monotone rcs pep8
12-
- sudo ./scripts/install-bitkeeper.sh
14+
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update -qq; fi
15+
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -qq exuberant-ctags cvs git mercurial cssc bzr subversion monotone rcs pep8; fi
16+
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo ./scripts/install-bitkeeper.sh; fi
17+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
18+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install ctags cvs monotone; fi
19+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then pip install pep8; fi
1320
install: true
1421

1522
before_script:
16-
- bk --version
17-
- hg --version
18-
- git --version
19-
- svn --version
20-
- cvs --version
21-
- mtn --version
22-
- bzr version
23+
- if `which bk`; then bk --version; fi
24+
- if `which hg`; then hg --version; fi
25+
- if `which git`; then git --version; fi
26+
- if `which svn`; then svn --version; fi
27+
- if `which cvs`; then cvs --version; fi
28+
- if `which mtn`; then mtn --version; fi
29+
- if `which bzr`; then bzr version; fi
30+
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then cd opengrok-indexer && mvn javadoc:javadoc && cd ../opengrok-web && mvn javadoc:javadoc && cd ..; fi
2331

2432
env:
2533
global:
2634
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
2735
# via the "travis encrypt" command using the project repo's public key
2836
- secure: "O_cda5pWDBAP-O3_0nG5RQ"
2937

38+
#
39+
# If compilation fails, we do not want to run the tests. Travis runs everything
40+
# in 'script' no matter if an individual command fails or not. This kludgy
41+
# looking shell incantation takes care of that.
42+
#
3043
script: "mvn -DskipTests=true -Dmaven.javadoc.skip=false -B -V compile \
31-
&& cd opengrok-indexer && mvn javadoc:javadoc \
32-
&& cd ../opengrok-web && mvn javadoc:javadoc \
33-
&& cd .. && mvn verify -B -Djunit-force-all=true"
44+
&& mvn verify -B"
3445

3546
addons:
3647
coverity_scan:

0 commit comments

Comments
 (0)