forked from yse/easy_profiler
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
60 lines (56 loc) · 1.38 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
sudo: required
dist: trusty
language: cpp
cache: ccache
matrix:
include:
- compiler: gcc
os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-5
- cmake
- cmake-data
env:
-CXX_COMPILER=g++-5
-C_COMPILER=gcc-5
- os: osx
osx_image: xcode10
#compiler: clang
env:
#-CXX_COMPILER=clang++
#-C_COMPILER=clang
-CXX_COMPILER=g++-5
-C_COMPILER=gcc-5
script:
- mkdir build
- cd build
- cmake --version
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then
source /opt/qt55/bin/qt55-env.sh;
qmake -v;
else
export PATH=/usr/local/opt/qt/bin:$PATH;
fi
- cmake -DCMAKE_CXX_COMPILER=$CXX_COMPILER -DCMAKE_C_COMPILER=$C_COMPILER .. && make -j3
after_success:
- cd ../sample && $CXX_COMPILER -std=c++11 -O3 main_clock.cpp -o test_clock && ./test_clock
- ./build_express_test.sh
before_install:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then
sudo add-apt-repository --yes ppa:beineri/opt-qt551-trusty;
sudo apt-get update -qq;
else
brew update;
fi
install:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then
sudo apt-get -y install qt55tools qt55script qt55base qt55svg;
else
brew install gcc5;
brew install qt;
brew link --force qt;
fi