forked from google/effcee
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
67 lines (53 loc) · 1.21 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
59
60
61
62
63
64
65
66
67
# Linux Build Configuration for Travis
language: cpp
os:
- linux
- osx
# Use Ubuntu 14.04 LTS (Trusty) as the Linux testing environment.
sudo: required
dist: trusty
env:
- EFFCEE_BUILD_TYPE=Release
- EFFCEE_BUILD_TYPE=Debug
compiler:
- clang
- gcc
matrix:
fast_finish: true # Show final status immediately if a test fails.
exclude:
# Skip GCC builds on macOS.
- os: osx
compiler: gcc
cache:
apt: true
branches:
only:
- master
addons:
apt:
packages:
- clang-3.6
- ninja-build
before_install:
# Install ninja on macOS.
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install ninja; fi
install:
- if [[ "$TRAVIS_OS_NAME" == "linux" && "$CC" == "clang" ]]; then
export CC=clang-3.6 CXX=clang++-3.6;
fi
before_script:
- git clone --depth=1 https://github.com/google/googletest third_party/googletest
- git clone --depth=1 https://github.com/google/re2 third_party/re2
script:
- mkdir build && cd build
- cmake -DCMAKE_BUILD_TYPE=${EFFCEE_BUILD_TYPE:-Debug}
-DRE2_BUILD_TESTING=OFF
-GNinja ..;
- ninja
- ctest
notifications:
email:
recipients:
on_success: change
on_failure: always