-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
44 lines (39 loc) · 1003 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
os: linux
dist: bionic
sudo: required
language: C
compiler: gcc
branches:
only: master
env:
global:
- GH_REPO_NAME: C-bind
- GH_REPO_REF: github.com/zwimer/C-bind.git
before_install:
- sudo apt-get install -qy gcc cmake make doxygen valgrind
addons:
apt:
update: true
script:
- set -e
- mkdir ./build
- cd ./build
- cmake ../examples
- make
- valgrind --error-exitcode=2 ./test-non-systemv.out
- valgrind --error-exitcode=2 ./test.out
after_success:
- set -e
- cd ${TRAVIS_BUILD_DIR}
- doxygen
- git clone "https://zwimer:$GH_REPO_TOKEN@github.com/zwimer/$GH_REPO_NAME"
- cd "$GH_REPO_NAME"
- git checkout gh-pages
- rm -rf ./docs
- mv ../docs .
- git add ./docs/
- git config user.name "Travis CI"
- git config user.email "travis@travis-ci.org"
- git commit -m 'Travis-CI Documentation update' | true
- git config --global push.default simple
- git push -u origin gh-pages