Skip to content

Commit

Permalink
Add travis.yml file.
Browse files Browse the repository at this point in the history
  • Loading branch information
steveire committed Mar 22, 2015
1 parent 7de4987 commit 8b120f2
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
language: cpp
branches:
only:
- master

os:
- linux
- osx

env:
- CONFIG=Release
- CONFIG=Debug

before_install:
- CMAKE_VERSION_MM=3.2
- CMAKE_VERSION_FULL=$CMAKE_VERSION_MM.1
- QT_VERSION_MM=54
- QT_VERSION_FULL=541
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
sudo apt-add-repository --yes ppa:beineri/opt-qt$QT_VERSION_FULL
&& sudo apt-get update -qq
&& sudo apt-get install -qq qt${QT_VERSION_MM}base qt${QT_VERSION_MM}script qt${QT_VERSION_MM}tools
&& export CMAKE_PREFIX_PATH=/opt/qt${QT_VERSION_MM}
&& wget http://www.cmake.org/files/v${CMAKE_VERSION_MM}/cmake-${CMAKE_VERSION_FULL}-Linux-x86_64.sh
&& sudo sh cmake-${CMAKE_VERSION_FULL}-Linux-x86_64.sh --prefix=/usr/local --exclude-subdir
&& export DISPLAY=:99.0
&& sh -e /etc/init.d/xvfb start;
fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install cmake qt5; fi

before_script:
- mkdir build
- cd build
- cmake .. -DCMAKE_BUILD_TYPE=$CONFIG

script:
- cmake --build . --config $CONFIG
- ctest --output-on-failure

notifications:
email: false

0 comments on commit 8b120f2

Please sign in to comment.