forked from amazon-ion/ion-c
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
58 lines (52 loc) · 1.24 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
51
52
53
54
55
56
57
58
language: cpp
matrix:
include:
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.9
- g++-4.9 # docopt uses <regex>, which requires 4.9+
- doxygen
env:
- MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9" DOCS="true"
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.6
packages:
- clang-3.6
- clang++-3.6
env:
- MATRIX_EVAL="CC=clang-3.6 && CXX=clang++-3.6"
- os: osx
env:
- MATRIX_EVAL="CC=gcc && CXX=g++"
- os: osx
env:
- MATRIX_EVAL="" # default clang
before_install:
- eval "${MATRIX_EVAL}"
install:
- ./build-debug.sh
- ./build-release.sh
script:
- ./build/debug/test/all_tests
- ./build/release/test/all_tests
after_success: |
if [ "$DOCS" = "true" ] && [ "$TRAVIS_BRANCH" = "master" ]; then
doxygen ./Doxyfile
fi
deploy:
provider: pages
local-dir: "./docs/html/"
skip-cleanup: true
github-token: "$GITHUB_TOKEN"
keep-history: true # keeps commit history of gh-pages branch
on:
branch: master
condition: $DOCS = true