-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
53 lines (43 loc) · 1.09 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
language: c
sudo: required
dist: trusty
branches:
except:
- gh-pages
env:
global:
- DOXYFILE: $TRAVIS_BUILD_DIR/DOXYFILE
addons:
sonarcloud:
organization: laurelmcintyre-github
apt:
packages:
- doxygen
- doxygen-doc
- doxygen-latex
- doxygen-gui
- graphviz
before_install:
- ccache -z
script:
- ${CC} --coverage -c helloworld.c -o helloworld.o
- ${CC} --coverage helloworld.o -o helloworld
- ./helloworld
- sonar-scanner
compiler:
- gcc
- clang
after_success:
- ccache -s
- if [ ${CC} = clang ]; then bash <(curl -s https://codecov.io/bash) -F ${CC} --gcov-exec
"llvm-cov gcov"; else bash <(curl -s https://codecov.io/bash) -F ${CC}; fi
- cd $TRAVIS_BUILD_DIR
- openssl aes-256-cbc -K $encrypted_90e5b1967e19_key -iv $encrypted_90e5b1967e19_iv -in deploy.enc -out ./deploy -d
- mv deploy ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
- chmod +x generateDocumentationAndDeploy.sh
- if [[ ${TRAVIS_JOB_NUMBER} = *.1 ]]; then ./generateDocumentationAndDeploy.sh; fi
cache:
ccache: true
directories:
- $HOME/.sonar