forked from fw4spl-org/fw4spl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (40 loc) · 1.51 KB
/
.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
language: cpp
sudo: false
addons:
apt:
packages:
- build-essential
- ninja-build
- python2.7
- git
- wget
- graphviz
- gnuplot
branches:
only:
- fw4spl_0.11.0
compiler:
- gcc
before_script:
- wget -q --no-check-certificate https://cmake.org/files/v3.4/cmake-3.4.1-Linux-x86_64.tar.gz
- tar xzf cmake-3.4.1-Linux-x86_64.tar.gz > /dev/null
- wget -q --no-check-certificate http://ftp.stack.nl/pub/users/dimitri/doxygen-1.8.11.linux.bin.tar.gz
- tar xzf doxygen-1.8.11.linux.bin.tar.gz > /dev/null
- export CMAKE_BIN=$TRAVIS_BUILD_DIR/cmake-3.4.1-Linux-x86_64/bin/cmake
- export DOXYGEN_BIN=$TRAVIS_BUILD_DIR/doxygen-1.8.11/bin/doxygen
- mkdir -p build/Documentation/Doxygen/html
- cd build/Documentation/Doxygen/html
- git clone https://github.com/fw4spl-org/fw4spl-dox.git .
- git checkout --quiet --orphan $TRAVIS_BRANCH
- git reset --hard
- git clean -f -d
- cd $TRAVIS_BUILD_DIR/build
- $CMAKE_BIN -DCMAKE_INSTALL_PREFIX:PATH=/tmp $TRAVIS_BUILD_DIR/ -DBUILD_DOCUMENTATION:BOOL=ON -DBUILD_TESTS:BOOL=OFF -DDOXYGEN_EXECUTABLE:FILEPATH=$DOXYGEN_BIN
script: make doc
after_success:
- git config --global user.name 'travis'
- git config --global user.email 'travis'
- cd $TRAVIS_BUILD_DIR/build/Documentation/Doxygen/html
- git add --all .
- git commit -m "Auto-updating Doxygen developer documentation"
- git push https://[email protected]/fw4spl-org/fw4spl-dox.git $TRAVIS_BRANCH --quiet --force > /dev/null 2>&1