-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
68 lines (56 loc) · 1.44 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
64
65
66
67
language: c++
sudo: required
dist: trusty
os:
- linux
- osx
compiler:
- gcc
- clang
env:
global:
- CTEST_OUTPUT_ON_FAILURE=True # Print output of failed unit test.
matrix:
- BUILD_TYPE=Debug
SHARED_LIBS=ON
- BUILD_TYPE=Release
SHARED_LIBS=ON
- BUILD_TYPE=Debug
SHARED_LIBS=OFF
- BUILD_TYPE=Release
SHARED_LIBS=OFF
matrix:
exclude:
- os: linux
compiler: clang
- os: osx
compiler: gcc
install:
- DEPS_DIR="${TRAVIS_BUILD_DIR}/deps"
- mkdir -p ${DEPS_DIR} && cd ${DEPS_DIR}
############################################################################
# Install Qt5.9
############################################################################
- |
if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
sudo apt-add-repository -y ppa:beineri/opt-qt593-trusty
sudo apt-get -qq update
sudo apt-get -qq install qt59tools qt59websockets
export QTDIR="/opt/qt59"
export PATH="$QTDIR/bin:$PATH"
qt59-env.sh
else
brew update > /dev/null
brew tap homebrew/versions
brew install qt
export QTDIR="/usr/local/opt/qt5"
export PATH="$QTDIR/bin:$PATH"
fi
before_script:
- cd ${TRAVIS_BUILD_DIR}
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DBUILD_SHARED_LIBS=${SHARED_LIBS} -DPRIVATE_TESTS_ENABLED=ON ..
script:
- cmake --build . --target all
- cmake --build . --target test