-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
30 lines (26 loc) · 1.11 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
language: c++
matrix:
include:
- os: linux
language: c++
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.8
- g++-4.8
- os: osx
language: objective-c
osx_image: xcode7.3
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then wget 'https://github.com/bazelbuild/bazel/releases/download/0.2.3/bazel-0.2.3-jdk7-installer-linux-x86_64.sh' ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then chmod +x bazel-0.2.3-jdk7-installer-linux-x86_64.sh ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./bazel-0.2.3-jdk7-installer-linux-x86_64.sh --user ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then cat .bazelrc_travis_patch_linux > .bazelrc ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then cat ~/.bazelrc >> .bazelrc ; fi
script:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then bazel build //:lemonscript ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then xctool test -project lemonscript.xcodeproj -scheme lemonscript_tests ; fi
after_script:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then rm .bazelrc ; fi