forked from rbock/sqlpp11
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (38 loc) · 906 Bytes
/
.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
language: cpp
os:
- linux
- osx
dist: trusty
sudo: required
compiler:
- clang
- gcc
env:
- CONFIG=Release
#- CONFIG=Debug
notifications:
email:
on_success: change
on_failure: always
install:
- g++ --version
- cmake --version
- git clone https://github.com/HowardHinnant/date
- cd date
- git checkout tags/v1.0.0
- cd ..
before_script:
- mkdir build
- cd build
- if [[ "$CONFIG" = "Debug" && "$TRAVIS_OS_NAME" = "linux" ]]; then
cp -r ../scripts/ . &&
cp -r ../test_scripts/ . &&
sudo apt-get install python-pyparsing;
fi
- if [[ "$CXX" = "g++" && "$CONFIG" = "Debug" && "$TRAVIS_OS_NAME" = "linux" ]]; then export CXXFLAGS="--coverage"; fi
- cmake .. -DCMAKE_BUILD_TYPE=$CONFIG -DCMAKE_PREFIX_PATH=$PWD/../date
script:
- cmake --build . --config $CONFIG
- ctest --output-on-failure
after_script:
- ../coveralls