Tyro/.travis.yml

31 lines
1005 B
YAML
Raw Normal View History

2015-05-08 21:57:34 -04:00
language: cpp
before_install:
# Define TRAVIS variable for workarounds
- export CXXFLAGS="$CXXFLAGS -DTRAVIS"
# Upgrade gcc
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
2015-06-19 16:50:16 -04:00
- sudo apt-get -qq update
- if [ "$CXX" == "g++" ]; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; fi
- if [ "$CXX" == "clang++" ]; then sudo add-apt-repository -y ppa:h-rayflood/llvm; fi
# Install dependencies
2015-06-18 13:50:44 -04:00
- sudo apt-get -qq install libwxgtk3.0-dev libwxgtk3.0-0 libssh2-1-dev
2015-05-08 21:57:34 -04:00
install:
- 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
#clang
- if [ "$CXX" == "clang++" ]; then sudo apt-get install --allow-unauthenticated -qq clang-3.4; fi
- if [ "$CXX" == "clang++" ]; then export CXX="clang++-3.4"; fi
2015-05-08 22:00:27 -04:00
# Build with both gcc and clang
2015-05-08 21:57:34 -04:00
compiler:
- gcc
- clang
script: make clean run-tests