forked from Constellation/iv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (42 loc) · 1.91 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
language: cpp
os:
- linux
- osx
env:
- BUILD_TYPE=Debug
- BUILD_TYPE=Release
before_install:
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get update -qq; fi
install:
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install -qq g++-4.8; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then export CC="gcc-4.8"; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then export CXX="g++-4.8"; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install -y llvm-3.3-dev libdw-dev libbfd-dev; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then export CC="clang"; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then export CXX="clang++"; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install binutils cmake llvm --verbose; fi
before_script:
- "cmake -H. -Bout -DCMAKE_BUILD_TYPE=$BUILD_TYPE"
script:
- make -C out
- out/iv/test/iv_unit_tests
- out/iv/lv5/test/lv5_unit_tests
- if [ "$BUILD_TYPE" == "Release" ]; then out/iv/test/benchmarks/aero_benchmarks --benchmark_iterations=100; fi
- if [ "$BUILD_TYPE" == "Release" ]; then make -C out sunspider; fi
- if [ "$BUILD_TYPE" == "Release" ]; then TZ=GST+8 python out/tools/download-test262-prefix/src/download-test262/tools/packaging/test262.py --tests=out/tools/download-test262-prefix/src/download-test262 --command=out/iv/lv5/lv5 --summary; fi
notifications:
recipients:
email:
on_success: change
on_failure: always
webhooks:
urls:
- https://webhooks.gitter.im/e/08227c1b059d9d0c5fb8
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: false # default: false
matrix:
allow_failures:
- compiler: clang