-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
31 lines (29 loc) · 1.04 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
language: cpp
sudo: required
dist: trusty
compiler:
- gcc
env:
- QT_BASE=56
- QT_BASE=57
- CONFIG=Debug
- CONFIG=Release
before_install:
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
- |
if [ "$CXX" = "clang" ]; then
sudo sh -c "echo 'deb http://llvm.org/apt/precise/ llvm-toolchain-precise-3.8-binaries main' >> /etc/apt/sources.list"
sudo sh -c "echo 'deb http://llvm.org/apt/precise/ llvm-toolchain-precise main' >> /etc/apt/sources.list"
wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add -
fi
- if [ "$QT_BASE" = "56" ]; then sudo add-apt-repository ppa:beineri/opt-qt561-trusty -y; fi
- if [ "$QT_BASE" = "57" ]; then sudo add-apt-repository ppa:beineri/opt-qt57-trusty -y; fi
- sudo apt-get update -qq
install:
- sudo apt-get install -qq g++-5 gcc-5
- if [ "$CXX" = "g++" ]; then export CXX="g++-5" CC="gcc-5"; fi
- $CXX --version
- sudo apt-get install -qq qt${QT_BASE}base qt${QT_BASE}script; source /opt/qt${QT_BASE}/bin/qt${QT_BASE}-env.sh
script:
- qmake -r "QMAKE_CXX=$CXX" "QMAKE_CC=$CC"
- make check