forked from ned14/quickcpplib
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
71 lines (64 loc) · 1.52 KB
/
.travis.yml
File metadata and controls
71 lines (64 loc) · 1.52 KB
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
68
69
70
71
dist: trusty
language: cpp
sudo: false
os:
- linux
- osx
branches:
only:
- master
notifications:
email:
recipients:
- nialldouglas14@gmail.com
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-6
- cmake
- cmake-data
- doxygen
env:
- __="Documentation" NAME=TravisDocumentation
- __="cmake tests" NAME=TravisLinuxWorker
- __="cmake tests osx" NAME=TravisOSXWorker
matrix:
exclude:
- os: linux
env: __="cmake tests osx" NAME=TravisOSXWorker
- os: osx
env: __="Documentation" NAME=TravisDocumentation
- os: osx
env: __="cmake tests" NAME=TravisLinuxWorker
before_install:
- git submodule update --init --recursive
- if [ "$CXX" = "g++" ] && [ "$__" != "cmake tests osx" ]; then export CXX=g++-6; fi
script:
-
if [ "$__" = "cmake tests" ]; then
ctest -S .ci.cmake -V;
fi
-
if [ "$__" = "cmake tests osx" ]; then
ctest -S .ci.cmake -V -E noexcept;
fi
-
if [ "$__" = "Documentation" ]; then
git config --global push.default simple;
git config --global user.name "Jenkins nedprod CI";
git config --global user.email "foo@nowhere";
cd doc/html;
git checkout gh-pages;
cd ../..;
ctest -S .docs.cmake -V;
cd doc/html;
git add . || true;
git commit -a -m "Travis CI updates documentation" || true;
git push -f https://jenkins-nedprod:$JENKINS_NEDPROD_PASSWORD@github.com/ned14/quickcpplib gh-pages;
cd ../..;
fi
after_success:
# - bash -x ./update_coveralls.sh `pwd`
after_failure: