forked from mcallegari/qlcplus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (34 loc) · 1.48 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
language: cpp
script:
- "bash -ex .travis-ci.sh"
matrix:
fast_finish: true
include:
# Clang won't work on Linux until -Wno-unused-local-typedefs is flagged by compiler not OS
#- compiler: clang
# env: TASK='compile'
- compiler: gcc
env: TASK='compile' QT='qt4'
- compiler: gcc
env: TASK='compile' QT='qt5'
cache: apt
before_install:
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
#- sudo add-apt-repository ppa:h-rayflood/llvm-upper -y
- sudo add-apt-repository ppa:beineri/opt-qt541 -y
- sudo apt-get update -qq
- sudo apt-get install -qq gdb libasound2-dev libusb-dev libftdi-dev shared-mime-info libudev-dev libmad0-dev libsndfile1-dev liblo-dev libfftw3-dev
# Install the relevant bits depending on which version of Qt, export a QMAKE variable with the qmake binary in it.
- if [ "$QT" = "qt4" ]; then sudo apt-get install -qq libqt4-dev; export QMAKE=qmake; fi
- if [ "$QT" = "qt5" ]; then sudo apt-get install -qq qt54-meta-minimal qt54script qt54multimedia; export QMAKE=/opt/qt54/bin/qmake; fi
#Report the qmake version
- $QMAKE -v
# Start xvfb so tests don't fail
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- if [ "$CXX" = "g++" ]; then sudo apt-get install -qq g++-5; fi
- if [ "$CXX" = "g++" ]; then export CXX="g++-5" CC="gcc-5"; fi
#Remove the old g++/gcc to ensure we're using the latest ones
- if [ "$CXX" = "g++-5" ]; then sudo rm /usr/bin/g++; sudo rm /usr/bin/gcc; fi
#Report the compiler version
- $CXX --version