-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
47 lines (47 loc) · 1.16 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
branches:
only:
- master
matrix:
include:
- os: linux
dist: trusty
compiler: gcc
sudo: required
addons:
apt:
packages:
- build-essential
- pkg-config
- cmake
before_install:
- sudo apt-add-repository --yes ppa:beineri/opt-qt593-trusty
- sudo apt-get -qq update
install:
- sudo apt-get --yes install build-essential automake autoconf libtool pkg-config cmake
- sudo apt-get --yes install qt59-meta-full
before_script:
- QTDIR="/opt/qt59"
- PATH="$QTDIR/bin:$PATH"
- source /opt/qt59/bin/qt59-env.sh
- os: osx
osx_image: xcode9.2
compiler: clang
before_install:
- brew update
install:
- brew install qt5
before_script:
- QTDIR="/usr/local/opt/qt"
- LDFLAGS="-L$QTDIR/lib:$LDFLAGS"
- CPPFLAGS="-I$QTDIR/include:$CPPFLAGS"
- PKG_CONFIG_PATH="$QTDIR/lib/pkgconfig:$PKG_CONFIG_PATH"
- PATH="$QTDIR/bin:$PATH"
script:
- mkdir build
- cd build
- cmake .. -DQT5_PREFIX=${QTDIR}
- make
after_script:
- ctest
- cpack