-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
46 lines (40 loc) · 1021 Bytes
/
.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
sudo: required
dist: trusty
cache: apt
env:
- QT_BASE=57
os:
- linux
addons:
apt:
sources:
# gcc/g++ repository
- ubuntu-toolchain-r-test
#- george-edison55-precise-backports # cmake 3.2.3 / doxygen 1.8.3
packages:
- g++-4.9
#cmake
- cmake
- cmake-data
before_install:
- export QT_VER=${QT_BASE:0:2}
# Qt repository
#- sudo add-apt-repository --yes ppa:ubuntu-sdk-team/ppa
- sudo apt-add-repository -y ppa:beineri/opt-qt${QT_BASE}-trusty
- sudo apt-get update -qy
install:
# Qt install
#- sudo apt-get install -qy qt57base
- sudo apt-get install -qq qt${QT_VER}base qt${QT_VER}tools qt${QT_VER}declarative
#- source /opt/qt${QT_VER}/bin/qt${QT_VER}-env.sh
- source /opt/qt57/bin/qt57-env.sh
# g++ install
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.9" CC="gcc-4.9"; fi
# CPP Unit install
- sudo apt-get install libcppunit-dev -y
script:
- cd src/
- lrelease ./incendie.pro
- qmake
- make --file Makefile -j2