-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
39 lines (32 loc) · 1.01 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
language: cpp
sudo: enabled
branches:
except:
- gh-pages
# From https://gist.github.com/vidavidorra/548ffbcdae99d752da02
env:
global:
- GH_REPO_NAME: libxmldiff
- DOXYFILE: $TRAVIS_BUILD_DIR/doc/libxmldiff.dox
- GH_REPO_REF: github.com/rpeyron/libxmldiff.git
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y libxml2-dev libxslt-dev pkg-config autotools-dev automake autoconf libtool valgrind
- sudo apt-get install -y doxygen graphviz
- autoreconf -f -i
# Generate and deploy documentation
after_success:
- cd $TRAVIS_BUILD_DIR
- make dox
- chmod +x doc/travis_dox.sh
- ./doc/travis_dox.sh
addons:
sonarcloud:
organization: "rpeyron-github" # the key of the org you chose at step #3
script:
# other script steps might be done before running the actual analysis
- autoreconf --force --install
- ./configure --enable-gcov
- build-wrapper-linux-x86-64 --out-dir bw-output make clean all test
- cd src && gcov -p *.cpp *.h && cd ..
- sonar-scanner