-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (40 loc) · 1.55 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
language: cpp
matrix:
fast_finish: true
include:
- os: linux
compiler: clang
sudo: required
dist: xenial
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- ninja-build
- libgl-dev
- libasound2-dev
env:
- MATRIX_EVAL="CC=clang && CXX=clang++ && BUILD_TYPE=Release"
- os: osx
compiler: clang
sudo: required
env:
- MATRIX_EVAL="BUILD_TYPE=Release && QT_PATH=-DCMAKE_PREFIX_PATH=/usr/local/opt/qt5"
before_install:
- eval "${MATRIX_EVAL}"
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo add-apt-repository ppa:beineri/opt-qt-5.11.1-xenial -y ; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get update -qq ; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install -qq qt511base qt511multimedia qt511translations qt511tools; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then source /opt/qt511/bin/qt511-env.sh ; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then export QTHOME=/opt/qt511 ; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install qt5 ninja; fi
before_script:
- mkdir build
- cd build
- cmake --version
- ${CXX} --version
- ${CC} --version
- cmake -GNinja -DCMAKE_CXX_COMPILER=${CXX} -DCMAKE_C_COMPILER=${CC} -DCMAKE_BUILD_TYPE=${BUILD_TYPE} ${QT_PATH} ..
script:
- cmake --build .