/
.travis.yml
47 lines (39 loc) · 1.05 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
language: cpp
sudo: required
os:
- linux
# - osx
env:
- CONFIG=Release
# - CONFIG=Debug
services:
- docker
branches:
only:
- master
- /^\d+\.\d+(\.\d+)?$/
install:
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
docker build -f scripts/travisinstall -t travis-ci .
;
else
brew update
&& curl -O https://raw.githubusercontent.com/Homebrew/homebrew-core/106d0878ee812cb8f5c403f717bdebe836445aee/Formula/qt5.rb
&& brew install ./qt5.rb ninja
&& export OPENSSL_ROOT_DIR=/usr/local/opt/openssl
&& chmod -R 755 /usr/local/opt/qt5/*
;
fi
script:
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
docker run -ti travis-ci scripts/travisciscript
;
else
cd build \
&& cmake -G Ninja -DCMAKE_BUILD_TYPE=$CONFIG -DENABLE_TRAVIS_CI=ON -DCMAKE_PREFIX_PATH=/usr/local/opt/qt5/lib/cmake -DENABLE_SAMPLE_PLUGINS=ON -DENABLE_TEST_PLUGINS=ON -DENABLE_TESTS=ON .. \
&& ninja \
&& OpenCOR.app/Contents/MacOS/runtests
;
fi
notifications:
email: team@opencor.ws