Update .travis.yml

This commit is contained in:
Alex Makarov
2016-06-29 12:54:37 +03:00
parent ed87ad9117
commit 625e0ed521

View File

@@ -1,21 +1,23 @@
language: cpp language: cpp
compiler: gcc
compiler: dist: trusty
- gcc sudo: required
env: env:
- QT4_BUILD=OFF - QT4_BUILD=OFF
before_install: before_install:
- sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test
- sudo add-apt-repository --yes ppa:ubuntu-sdk-team/ppa - sudo add-apt-repository --yes ppa:ubuntu-sdk-team/ppa
- sudo add-apt-repository --yes ppa:kalakris/cmake - sudo add-apt-repository --yes ppa:kalakris/cmake
- sudo apt-get update -qq - sudo apt-get update -qq
- sudo apt-get install -qq cmake libqtcore4 qt4-qmake libqt5core5 qt5-qmake qt5-default qtchooser libmsgpack-dev
install:
- sudo apt-get install -y --force-yes build-essential g++-4.8 -y
- sudo apt-get install -y --force-yes cmake
- sudo apt-get install -y --force-yes qtbase5-dev qtdeclarative5-dev libqt5gui5 qttools5-dev-tools qttools5-dev qtmultimedia5-dev libmsgpack-dev
script: script:
- mkdir build - qmake -qt=qt5 qmsgpack.pro
- cd build - make
- if [ "$QT4_BUILD" == "OFF" ]; then cmake -DBUILD_TESTS=TRUE -DQT4_BUILD=FALSE ..; else cmake -DBUILD_TESTS=TRUE -DQT4_BUILD=TRUE ..; fi
- make
- export CTEST_OUTPUT_ON_FAILURE=1
- make test