-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
53 lines (46 loc) · 1.18 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
sudo: false
language: cpp
compiler:
- gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.8
- g++-4.8
cache:
directories:
- .cmake
- .qt
before_script:
# Fetch and install dependencies if cache miss
- curl https://raw.githubusercontent.com/hawaii-desktop/repotools/master/ci/fetch-deps | bash -x
- export PATH=`pwd`/.cmake/bin:`pwd`/.qt/5.6/5.6/gcc_64/bin:$PATH
- export LD_LIBRARY_PATH=`pwd`/.qt/5.6/5.6/gcc_64/lib:$LD_LIBRARY_PATH
- export CMAKE_PREFIX_PATH=`pwd`/.qt/5.6/5.6/gcc_64/lib/cmake
# Setup compilers
- export CC=gcc-4.8
- export CXX=g++-4.8
# xvfb for unit tests
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
# prepare
- mkdir build
- cd build
- cmake ..
script:
- make
notifications:
email: false
irc:
channels:
- chat.freenode.net#hawaii-desktop
use_notice: true
skip_join: true
on_success: always
on_failure: change
slack:
secure: EGWF118PTfBj/Oktmr20fc17JTM5gt7/j24k6HkiOI1J8S+sJyxhhtSjV54cgmsaEURJ7zUD/xi2wSSigi82k2F29wpELInfty/+j95vuY+7QO7nyVIINHjKranLUogKai9evHU2cvlNTq6e27pjkDbRO2HNKyzTb+Lb6D3VEOk=
on_success: always
on_failure: change