2015-05-08 21:57:34 -04:00
|
|
|
language: cpp
|
|
|
|
|
|
|
|
before_install:
|
2015-05-13 16:55:44 -04:00
|
|
|
# Setup virtual x server for gui testing
|
|
|
|
- export DISPLAY=:99.0
|
|
|
|
- sh -e /etc/init.d/xvfb start
|
2015-05-29 09:34:58 -04:00
|
|
|
|
2015-06-18 13:34:54 -04:00
|
|
|
# Define TRAVIS variable for workarounds
|
|
|
|
- export CXXFLAGS="$CXXFLAGS -DTRAVIS"
|
|
|
|
|
2015-05-29 09:34:58 -04:00
|
|
|
# Upgrade gcc
|
2015-05-29 11:10:30 -04:00
|
|
|
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
|
|
|
|
- sudo apt-get -qq update
|
2015-06-01 14:36:22 -04:00
|
|
|
- if [ "$CXX" = "g++" ]; then sudo apt-get install -qq g++-4.8; fi
|
|
|
|
- if [ "$CXX" = "g++" ]; then sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 98; fi
|
2015-05-29 09:34:58 -04:00
|
|
|
|
|
|
|
# Install dependencies
|
2015-06-18 13:34:54 -04:00
|
|
|
- sudo apt-get -qq install libwxgtk3.0-dev libwxgtk3.0-0 libssh2-1-dev cpputest
|
2015-05-08 21:57:34 -04:00
|
|
|
|
2015-05-08 22:00:27 -04:00
|
|
|
# Build with both gcc and clang
|
2015-05-08 21:57:34 -04:00
|
|
|
compiler:
|
2015-05-08 22:03:56 -04:00
|
|
|
- gcc
|
|
|
|
- clang
|
|
|
|
|
2015-06-18 13:34:54 -04:00
|
|
|
script: make clean run-tests
|