-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
42 lines (35 loc) · 909 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
language: cpp
sudo: required
dist: xenial
os:
- linux
- osx
compiler:
- gcc
- clang
addons:
apt:
packages:
- cmake
- doxygen
- pkg-config
- libjsoncpp1
- libjsoncpp-dev
before_script:
- if [[ $TRAVIS_OS_NAME == "osx" ]]; then brew update && brew install pkg-config jsoncpp doxygen curl; fi
script:
- cmake . -DCMAKE_BUILD_TYPE="Release" -DCMAKE_CXX_FLAGS="-Wall -Wextra -O2 -finline-functions" -DXXTELEBOT_PKG_CONFIG="not_needed_here"
- make -j3
before_deploy:
- make docs
- rm -rfv "*.cmake CMakeFiles CMakeCache.txt Makefile lib
src scripts include README.md .travis.yml
.gitignore Doxyfile CMakeLists.txt"
- rm -r docs/latex
- mv docs/html/* .
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
on:
condition: "$CC = gcc && $TRAVIS_OS_NAME = linux"