-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy path.travis.yml
56 lines (49 loc) · 1.35 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
language: cpp
sudo: required
dist: xenial
os:
- linux
env:
- QTENV="qt511"
- QTENV="qt512"
compiler:
- clang
# - gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- cmake
- freeglut3-dev
- libpulse-dev
- libflac-dev
- libflac++-dev
- zlib1g-dev
- libssl-dev
- libdbus-1-dev
before_install:
- if [ "$CC" = "clang" ]; then
export CXX="clang++" CC="clang";
fi;
- if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$CXX" = "g++" ]; then
export CXX="g++" CC="gcc";
export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01';
fi;
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then
if [ "$QTENV" = "qt511" ]; then
sudo add-apt-repository ppa:beineri/opt-qt-5.11.3-xenial -y;
else
sudo add-apt-repository ppa:beineri/opt-qt-5.12.6-xenial -y;
fi;
sudo apt-get update;
sudo apt-get install ${QTENV}base ${QTENV}tools ${QTENV}declarative ${QTENV}quickcontrols2 ${QTENV}svg -y --allow-unauthenticated;
fi;
before_script:
- source /opt/${QTENV}/bin/${QTENV}-env.sh
- cmake --version
- mkdir build && cd build
- cmake .. -Wdev -DCMAKE_CXX_COMPILER=$(which $CXX) -DCMAKE_C_COMPILER=$(which $CC) -DCMAKE_INSTALL_PREFIX=$HOME
script:
- cmake --build . --target install
- cmake --build . --target uninstall