diff options
| author | fab672000 <fabien@onepost.net> | 2018-12-27 21:47:23 -0600 |
|---|---|---|
| committer | fab672000 <fabien@onepost.net> | 2018-12-27 21:47:23 -0600 |
| commit | 8c44c9a6b15b077f418269465bf88420d2d2f043 (patch) | |
| tree | 15ebcead6800f38321fbb026ef96307ff2888b82 | |
| parent | c361b64096c75a6d65d4234601c83ff381198eba (diff) | |
As requested implement cmake builds and also implement matrix customization to use a static analyzer and also doc gen in only one target to avoid having too many targets
| -rw-r--r-- | .travis.yml | 31 |
1 files changed, 26 insertions, 5 deletions
diff --git a/.travis.yml b/.travis.yml index 981dcaea5..9d8a45160 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,6 +14,17 @@ compiler: - gcc - clang +env: + - | + ANALYZE=false + DOC=false + +matrix: + include: + os: linux + compiler: clang + env: ANALYZE=true DOC=true + branches: only: - master @@ -33,13 +44,23 @@ before_script: script: - | - autoconf - ./configure - make + if [ $ANALYZE = "false" ]; then + autoconf + ./configure + make + mkdir cmake-build + cmake -G "Unix Makefiles" -S . -B"./cmake-build" + cd cmake-build + make + else + scan-build cmake -G "Unix Makefiles" + scan-build --status-bugs -v + make + fi after_success: - | - if [ $TRAVIS_OS_NAME == linux ]; then + if [ $DOC = "true" ]; then doxygen --version cd documentation make html @@ -50,4 +71,4 @@ notifications: email: recipients: - fabien@onepost.net - +
\ No newline at end of file |
