-
-
Notifications
You must be signed in to change notification settings - Fork 189
/
.travis.yml
38 lines (38 loc) · 864 Bytes
/
.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
dist: xenial
cache: ccache
language: cpp
jobs:
include:
- compiler: gcc
os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-5
- cmake
- cmake-data
- qt5-default
env:
-CXX_COMPILER=g++-5
-C_COMPILER=gcc-5
- os: osx
osx_image: xcode11.4
env:
-CXX_COMPILER=g++-5
-C_COMPILER=gcc-5
-HOMEBREW_NO_AUTO_UPDATE=1
script:
- mkdir build
- cd build
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
export PATH=/usr/local/opt/qt/bin:$PATH;
fi
- cmake -DCMAKE_CXX_COMPILER=$CXX_COMPILER -DCMAKE_C_COMPILER=$C_COMPILER .. && make -j3
install:
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
brew install gcc5;
brew install qt;
brew link --force qt;
fi