diff options
| author | Matthias Melcher <github@matthiasm.com> | 2018-12-28 11:37:46 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-12-28 11:37:46 -0800 |
| commit | 6e7b91ea10ad77941c03484a5d8974590566a36c (patch) | |
| tree | e6299b0f56d745572fd3fa228e769a69f9610d4a | |
| parent | 75eefbcd42e7117de110f1d77e892912a24fc0a4 (diff) | |
| parent | 8c44c9a6b15b077f418269465bf88420d2d2f043 (diff) | |
Merge pull request #8 from fltk/feature/travis
Travis implementation supporting build and doc generation for a matrix of targets
| -rw-r--r-- | .travis.yml | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..9d8a45160 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,74 @@ +sudo: required +dist: trusty +cache: ccache + +language: + - c++ +# - objective-c + +os: + - linux + - osx + +compiler: + - gcc + - clang + +env: + - | + ANALYZE=false + DOC=false + +matrix: + include: + os: linux + compiler: clang + env: ANALYZE=true DOC=true + +branches: + only: + - master + - /^feature.*$/ + +before_script: + - | + if [ $TRAVIS_OS_NAME == linux ]; then + sudo apt-get update -q + sudo apt-get install -y libxinerama-dev libxcursor-dev libasound2-dev + sudo apt-get install -y doxygen + elif [ $TRAVIS_OS_NAME == osx ]; then + brew install ccache # need to install on OSX + export PATH="/usr/local/opt/ccache/libexec:$PATH" + brew install doxygen + fi + +script: + - | + 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 [ $DOC = "true" ]; then + doxygen --version + cd documentation + make html + cd - + fi + +notifications: + email: + recipients: + - fabien@onepost.net +
\ No newline at end of file |
