-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
46 lines (40 loc) · 1.31 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
language: cpp
dist: precise
compiler:
- clang
- gcc
env:
- QT_BASE=53
- QT_BASE=54
- QT_BASE=55
matrix:
allow_failures:
- compiler: clang
env: QT_BASE=53
- compiler: clang
env: QT_BASE=55
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.6-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" = "53" ]; then sudo add-apt-repository ppa:beineri/opt-qt532 -y; fi
- if [ "$QT_BASE" = "54" ]; then sudo add-apt-repository ppa:beineri/opt-qt542 -y; fi
- if [ "$QT_BASE" = "55" ]; then sudo add-apt-repository ppa:beineri/opt-qt551 -y; fi
- sudo apt-get update -qq
install:
- sudo apt-get install -qq g++-4.9 gcc-4.9
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.9" CC="gcc-4.9"; fi
- |
if [ "$CXX" = "clang" ]; then
sudo apt-get install -qq llvm-3.6
export CXX="clang++" CC="clang"
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