forked from opencor/opencor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
59 lines (52 loc) · 1.56 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
language: cpp
sudo: required
dist: trusty
os:
- linux
- osx
env:
- CONFIG=Release
- CONFIG=Debug
branches:
only:
- master
- /^\d+\.\d+(\.\d+)?$/
- qtwebengine
install:
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
sudo apt-get install python-software-properties
&& sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
&& sudo apt-add-repository -y ppa:beineri/opt-qt561-trusty
&& sudo apt-get -qq update
&& sudo apt-get -qq install gcc-4.9 g++-4.9
&& sudo apt-get -qq install qt56location qt56multimedia qt56sensors qt56svg qt56tools qt56webchannel
&& sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 50
&& sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 50
;
else
brew update
&& brew unlink cmake
&& brew install cmake qt5
&& chmod -R 755 /usr/local/opt/qt5/*
;
fi
script:
- cd build
&& if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
cmake -DCMAKE_BUILD_TYPE=$CONFIG -DENABLE_TRAVIS_CI=ON -DCMAKE_PREFIX_PATH=/opt/qt56/lib/cmake -DENABLE_TESTS=ON -DENABLE_SAMPLES=ON ..
;
else
cmake -DCMAKE_BUILD_TYPE=$CONFIG -DENABLE_TRAVIS_CI=ON -DCMAKE_PREFIX_PATH=/usr/local/opt/qt5/lib/cmake -DENABLE_TESTS=ON -DENABLE_SAMPLES=ON ..
;
fi
&& make -j 3
&& cd ..
&& if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
build/bin/runtests
;
else
build/OpenCOR.app/Contents/MacOS/runtests
;
fi
notifications:
email: [email protected]