forked from woboq/verdigris
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
67 lines (57 loc) · 2.07 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
sudo: required
dist: trusty
language: cpp
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-3.8
- llvm-toolchain-trusty-3.9
- llvm-toolchain-trusty-4.0
- llvm-toolchain-trusty-5.0
os: linux
matrix:
exclude:
- os: linux # Workaround to put OS X first.
include:
- os: osx
compiler: clang
env: QMAKESPEC=macx-clang
before_install: true
install: brew install qt5
before_script: brew link qt5 --force
# We enumerate the matrix explicitly anyway, so order it after osx.
- env: QT_VERSION=55 QT_SOURCE=551 GCC_VERSION=5
- env: QT_VERSION=56 QT_SOURCE=563 GCC_VERSION=6
- env: QT_VERSION=58 QT_SOURCE=58 GCC_VERSION=6
- env: QT_VERSION=59 QT_SOURCE=593 GCC_VERSION=7
- env: QT_VERSION=510 QT_SOURCE=-5.10.1 GCC_VERSION=7
# Clang builds.
- env: QT_VERSION=56 QT_SOURCE=563 CLANG_VERSION=3.8
- env: QT_VERSION=57 QT_SOURCE=571 CLANG_VERSION=3.9
- env: QT_VERSION=58 QT_SOURCE=58 CLANG_VERSION=4.0
- env: QT_VERSION=59 QT_SOURCE=591 CLANG_VERSION=5.0
- env: QT_VERSION=510 QT_SOURCE=-5.10.1 CLANG_VERSION=5.0
before_install:
- sudo add-apt-repository -y ppa:beineri/opt-qt${QT_SOURCE}-trusty;
- sudo apt-get update
install:
- sudo apt-get install -y -qq qt${QT_VERSION}base
- if [[ $GCC_VERSION ]]; then
sudo apt-get install -y -qq g++-${GCC_VERSION};
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-${GCC_VERSION} 90;
g++ --version;
elif [[ $CLANG_VERSION ]]; then
sudo apt-get install -y -qq libstdc++-5-dev clang-${CLANG_VERSION};
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-${CLANG_VERSION} 90;
clang++ --version;
export QMAKESPEC=linux-clang;
fi
before_script:
- source /opt/qt$QT_VERSION/bin/qt${QT_VERSION}-env.sh
script:
- which qmake
- qmake --version
- qmake -r
- make -j 2
- make check