forked from siggame/Joueur.cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
46 lines (40 loc) · 971 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
language: cpp
compiler: gcc
python: "3.6"
dist: trusty
sudo: require
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-6
- g++-6
- cmake
- doxygen
before_install:
# Link gcc-6 and g++-6 to their standard commands
- sudo ln -s /usr/bin/gcc-6 /usr/local/bin/gcc
- sudo ln -s /usr/bin/g++-6 /usr/local/bin/g++
# Export CC and CXX to tell cmake which compiler to use
- export CC=/usr/bin/gcc-6
- export CXX=/usr/bin/g++-6
# Check versions of gcc, g++ and cmake
- gcc -v && g++ -v && cmake --version
# Run your build commands next
script:
# ensure it builds (should now be using gcc-6)
- make
before_deploy:
# run the docs
- cd docs
- python3 generate_docs.py
# file to tell GitHub pages not to try to run jekyll stuff (can break urls)
- touch output/.nojekyll
deploy:
provider: pages
skip-cleanup: true
local-dir: docs/output
github-token: $GH_TOKEN
on:
branch: master