forked from electro-smith/DaisySP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
79 lines (75 loc) · 2 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
69
70
71
72
73
74
75
76
77
78
79
# Blacklist
branches:
#only:
#- master
language: c++
jobs:
include:
# check code style
- os: linux
name: Code Style
dist: focal # required for clang-format-10
addons:
apt:
packages:
- clang-format-10
env:
- CODESTYLE=1
- CLANG_FORMAT=clang-format-10
# build
- os: linux
name: 'Build'
addons:
apt:
packages:
- build-essential
env:
- BUILD=1
# build documentation
- os: linux
name: 'Build Documentation'
addons:
apt:
packages:
- doxygen
- pandoc
- texlive-fonts-recommended
- texlive-latex-extra
- texlive-fonts-extra
- dvipng
- texlive-latex-recommended
- lmodern # needed for style guide pdf
env:
- BUILD_DOCS=1
deploy:
provider: pages
local_dir: doc/html
keep_history: true
skip_cleanup: true
github_token: $GH_REPO_TOKEN
on:
branch: master
condition: $DEPLOY_DOCS == 1
before_install:
- |
if [ "$BUILD" != "" ]; then
travis_wait 45 bash ./ci/travis_setup_gcc_arm.sh
export PATH="/tmp/gcc-arm/bin/:$PATH"
export GCC_PATH="/tmp/gcc-arm/bin"
fi
before_script:
- |
if [ "$CODESTYLE" != "" ]; then
$CLANG_FORMAT -version
./ci/run-clang-format.py -r modules examples --clang-format-executable $CLANG_FORMAT
fi
script:
- |
if [ "$BUILD_DOCS" != "" ]; then
./rebuild_docs.sh
fi
- |
if [ "$BUILD" != "" ]; then
make clean
make
fi