Skip to content

Commit 3882243

Browse files
committed
Add osx to build matrix and include bazel 0.4.0
1 parent 7d12b7e commit 3882243

File tree

1 file changed

+24
-7
lines changed

1 file changed

+24
-7
lines changed

.travis.yml

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,31 @@
1-
# https://docs.travis-ci.com/user/trusty-ci-environment/
21
dist: trusty
32
sudo: required
3+
osx_image: xcode8
4+
language: java
5+
46
os:
57
- linux
6-
# - osx
8+
- osx
79

810
env:
9-
- V=HEAD URL_BASE=http://ci.bazel.io/job/Bazel/JAVA_VERSION=1.8,PLATFORM_NAME=linux-x86_64/lastSuccessfulBuild/artifact/output/ci/ URL="$URL_BASE`wget -qO- $URL_BASE | grep -oP 'bazel-.*?-installer.sh' | uniq`" FLAGS='--worker_verbose --strategy=Javac=worker --strategy=Closure=worker'
10-
- V=0.3.2rc3 URL=https://storage.googleapis.com/bazel/0.3.2/rc3/bazel-0.3.2rc3-installer-linux-x86_64.sh FLAGS=''
11-
- V=0.3.1 URL=https://github.com/bazelbuild/bazel/releases/download/0.3.1/bazel-0.3.1-installer-linux-x86_64.sh FLAGS=''
11+
- V=HEAD
12+
- V=0.4.0
13+
- V=0.3.2
14+
- V=0.3.1
1215

1316
before_install:
17+
- OS=linux
18+
- ARCH=x86_64
19+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then OS=darwin; fi
20+
- GH_BASE="https://github.com/bazelbuild/bazel/releases/download/$V"
21+
- GH_ARTIFACT="bazel-$V-installer-$OS-$ARCH.sh"
22+
- CI_BASE="http://ci.bazel.io/job/Bazel/JAVA_VERSION=1.8,PLATFORM_NAME=$OS-$ARCH/lastSuccessfulBuild/artifact/output/ci"
23+
- CI_ARTIFACT="bazel--installer.sh"
24+
- URL="$GH_BASE/$GH_ARTIFACT"
25+
- if [[ "$V" == "HEAD" && "$OS" == "linux" ]]; then CI_ARTIFACT="`wget -qO- $CI_BASE | grep -oP 'bazel-.*?-installer.sh' | uniq`"; fi
26+
- if [[ "$V" == "HEAD" && "$OS" == "osx" ]]; then CI_ARTIFACT="`wget -qO- $CI_BASE | pcregrep -o 'bazel-.*?-installer.sh' | uniq`"; fi
27+
- if [[ "$V" == "HEAD" ]]; then URL="$CI_BASE/$CI_ARTIFACT"; fi
28+
- echo $URL
1429
- wget -O install.sh $URL
1530
- chmod +x install.sh
1631
- ./install.sh --user
@@ -25,12 +40,14 @@ script:
2540
--host_jvm_args=-Xms500m \
2641
test \
2742
--verbose_failures \
28-
--sandbox_debug \
2943
--test_output=errors \
3044
--test_strategy=standalone \
3145
--spawn_strategy=standalone \
3246
--genrule_strategy=standalone \
33-
--local_resources=400,1,1.0 \
47+
--local_resources=400,2,1.0 \
48+
--worker_verbose \
49+
--strategy=Javac=worker \
50+
--strategy=Closure=worker \
3451
//examples/helloworld/closure/... \
3552
//examples/helloworld/cpp/... \
3653
//examples/helloworld/go/... \

0 commit comments

Comments
 (0)