-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
55 lines (49 loc) · 1.22 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
language: C++
git:
# default is 50, not needed
depth: 5
matrix:
include:
- os: osx
env: CONFIG=Release
compiler: clang
osx_image: xcode8.3
- os: linux
dist: trusty
sudo: required
env: CONFIG=Release
compiler: gcc
before_install:
- |
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
# Need at least Qt 5.6 for QWebEnginePage::setBackgroundColor
# https://launchpad.net/~beineri/+archive/ubuntu/opt-qt562-trusty
sudo add-apt-repository ppa:beineri/opt-qt562-trusty -y &&
sudo apt-get update -qq
fi
- |
if [ "$TRAVIS_OS_NAME" = "osx" ]; then
brew update &&
brew upgrade cmake &&
brew install qt5 &&
chmod -R 755 /usr/local/opt/qt5/*
fi
install:
- |
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
sudo apt-get install -qq qt56base &&
sudo apt-get install -qq qt56webengine &&
source /opt/qt56/bin/qt56-env.sh
fi
script:
- mkdir build && cd build
- |
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
cmake .. &&
cmake --build .
fi
- |
if [ "$TRAVIS_OS_NAME" = "osx" ]; then
cmake -D CMAKE_PREFIX_PATH=$(brew --prefix qt5) .. &&
cmake --build .
fi