-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
68 lines (59 loc) · 2.06 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
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
language: cpp
sudo: false
dist: focal
matrix:
include:
# Linux GCC Builds
- os: linux
compiler: gcc
addons: &gcc10
apt:
sources: ['ubuntu-toolchain-r-test']
packages: ['g++-10', 'gcc-10', 'doxygen', 'graphviz']
env: GCCVER='10' CXX_COMPILER='g++-10' C_COMPILER='gcc-10'
# 4/ OSX GCC Builds
- os: osx
osx_image: xcode11.2
compiler: gcc
addons:
homebrew:
packages:
- gcc
env: GCCVER='9' CXX_COMPILER='g++-9' C_COMPILER='gcc-9'
cache:
directories:
- /var/cache/apt/archives
before_script:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export TARGETBRANCH=osx ; fi
- cd ${TRAVIS_BUILD_DIR}
- export CXX=${CXX_COMPILER}
- export CC=${C_COMPILER}
# linux only
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export AR=gcc-ar-${GCCVER} ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export RANLIB=gcc-ranlib-${GCCVER} ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export NM=gcc-nm-${GCCVER} ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export TARGETBRANCH=gh-pages ; fi
script :
- /bin/sh ./tag.sh
- autoreconf -vfi
- mkdir usr && mkdir usr/local
- ./configure --enable-nolto --prefix=$PWD/usr/local/ || cat config.log
- cd ddd
- make -j
- cd ..
- make -j
- make install
- tar cvzf $TRAVIS_OS_NAME.tgz usr/
- mv $TRAVIS_OS_NAME.tgz website/
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then make dist ; mv ddd*.tar.gz website/ ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then cd doc ; make ; cd .. ; mv doc/libddd.html/ website/ ; fi
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard
local_dir: website/
target_branch: $TARGETBRANCH
on:
branch: master
after_deploy:
- curl -s -X POST -H "Content-Type:application/json" -H "Accept:application/json" -H "Travis-API-Version:3" -H "Authorization:token $APITOKEN" -d '{"request":{"message":"Triggered by LibDDD build.","branch":"master"}}' https://api.travis-ci.org/repo/lip6%2FlibITS/requests