forked from helgebetzinger/coasync4cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
63 lines (46 loc) · 1.68 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
57
58
59
60
61
62
63
language: cpp
compiler:
- clang
# - gcc
os:
- linux
# - osx
branches:
only:
- master
- /^(?i:dev)-.*$/ # matches Dev-cmake and other branches and tags that start with dev- in any combination of cases.
- /^(?i:release)-.*$/ # matches release-0.10 and other branches and tags that start with release- in any combination of cases.
before_install:
# Add software package repository, containing updated build toochain, i.e. GNU GCC 4.8
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo add-apt-repository -y ppa:ubuntu-sdk-team/ppa
- sudo add-apt-repository -y ppa:chewing/travis-ci/cmake # cmake 3.02
- sudo add-apt-repository -y ppa:boost-latest/ppa
- sudo add-apt-repository -y ppa:beineri/opt-qt521 # qt 5.2
- sudo apt-get update -qq
install:
# upgrade compiler to g++4.8.1
- sudo apt-get install -y -qq gcc-4.8 g++-4.8
- if [ "$CXX" = "g++" ]; then sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 90 ; fi
- if [ "$CXX" = "g++" ]; then sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/g++-4.8 90 ; fi
- if [ "$CXX" = "g++" ]; then sudo apt-get install libstdc++-4.8-dev ; fi
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
# install boost, cmake
- sudo apt-get install -y -qq gcc-4.8 g++-4.8 cmake-data cmake libboost1.55-all-dev
# install qt 5.2
- sudo apt-get install -y -qq qt52base qt52webkit qt52tools
- export CMAKE_PREFIX_PATH="/opt/qt52/lib/cmake"
- ls /opt/qt52/lib/cmake
before_script:
#report version
- which cmake
- cmake --version
- g++ -v
- clang -v
script:
- mkdir _builds
- cd _builds
- cmake -Dbuild_tests=ON -Dbuild_coasync4qt=ON DCMAKE_PREFIX_PATH=/opt/qt52/lib/cmake ..
# - make
- make VERBOSE=1
# - ctest