summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfabien <fabien@onepost.net>2018-12-26 16:19:25 -0600
committerfabien <fabien@onepost.net>2018-12-26 16:19:25 -0600
commitc361b64096c75a6d65d4234601c83ff381198eba (patch)
tree6792f14376fb8f58ce8929365a97060595698312
parent5c7118f8d9a4a89742c33d411e5f207b9108b32e (diff)
Travis implementation allowing to build four targets on change of master or a matching pattern of feature/*.
This implementation differs from existing fltk-test and also gitlab implementation : - minimum, fast light implementation: stripoped all unused constructions compared to other implementations - supports successful builds of four targets (linu, osx and then gcc and clang for each of them) - uses before_script instead of before_install - uses after_success for building documentation, instead of building always if error - only builds documentation on linux targets for now (can easily change if future)
-rw-r--r--.travis.yml53
1 files changed, 53 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 000000000..981dcaea5
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,53 @@
+sudo: required
+dist: trusty
+cache: ccache
+
+language:
+ - c++
+# - objective-c
+
+os:
+ - linux
+ - osx
+
+compiler:
+ - gcc
+ - clang
+
+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:
+ - |
+ autoconf
+ ./configure
+ make
+
+after_success:
+ - |
+ if [ $TRAVIS_OS_NAME == linux ]; then
+ doxygen --version
+ cd documentation
+ make html
+ cd -
+ fi
+
+notifications:
+ email:
+ recipients:
+ - fabien@onepost.net
+