-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
74 lines (67 loc) · 2.09 KB
/
.travis.yml
File metadata and controls
74 lines (67 loc) · 2.09 KB
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
68
69
70
71
72
73
74
language: cpp
compiler:
- gcc
# - clang
notifications:
email: false
irc:
channels:
- "chat.freenode.net#hawaii-desktop"
on_success: change
on_failure: change
use_notice: true
before_install:
- if [ "$CXX" == "g++" ]; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; fi
- if [ "$CXX" == "clang++" ]; then sudo add-apt-repository -y ppa:h-rayflood/llvm; fi
- sudo add-apt-repository -y ppa:beineri/opt-qt551
- sudo apt-get update -qq
install:
# gcc
- if [ "$CXX" == "g++" ]; then sudo apt-get install -qq gcc-4.8 g++-4.8; fi
- if [ "$CXX" == "g++" ]; then export CC="gcc-4.8"; export CXX="g++-4.8"; fi
# clang
#- if [ "$CXX" == "clang++" ]; then sudo apt-get install -qq clang-3.6; fi
#- if [ "$CXX" == "clang++" ]; then export CC="clang-3.6"; export CXX="clang++-3.6"; fi
# qt
- sudo apt-get -y install qt55declarative qt55tools
before_script:
# cmake
- wget --no-check-certificate http://www.cmake.org/files/v3.3/cmake-3.3.0-Linux-x86_64.tar.gz -O cmake.tar.gz
- tar -xzf cmake.tar.gz -C $HOME
- export PATH=$HOME/cmake-3.3.0-Linux-x86_64/bin:$PATH
- cmake --version
# e-c-m
- wget --no-check-certificate http://download.kde.org/stable/frameworks/5.12/extra-cmake-modules-5.12.0.tar.xz
- tar -xJf extra-cmake-modules-5.12.0.tar.xz
- pushd extra-cmake-modules-5.12.0
- rm -rf build
- mkdir build
- cd build
- cmake .. -DCMAKE_INSTALL_PREFIX=$HOME/ecm
- make && make install
- popd
- export PATH=$HOME/ecm/bin:$PATH
# xvfb for unit tests
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
# prepare
- source /opt/qt55/bin/qt55-env.sh
- echo $PATH
- 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