forked from RPG-Paper-Maker/RPG-Paper-Maker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
67 lines (61 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: cpp
osx_image: xcode10.1
env:
global:
- MAKEFLAGS="-j 2"
matrix:
include:
- os: linux
dist: xenial
sudo: required
compiler: gcc
env:
- QT_MAJOR=5
- QT_MINOR=11
- QT_PATCH=2
addons:
apt:
packages:
- libglu1-mesa-dev
- os: osx
compiler: clang
env:
# current brew stable is 5.11.2
- QT_MAJOR=5
before_install:
- |
if [ "$CXX" = "g++" ]; then
export QT_FULL="${QT_MAJOR}.${QT_MINOR}.${QT_PATCH}" # ex: 5.11.2
export QT_SHORT="${QT_MAJOR}${QT_MINOR}" # ex: 511
sudo add-apt-repository -y ppa:beineri/opt-qt-${QT_FULL}-xenial
sudo apt-get update -qq
sudo apt-get install -qq qt${QT_SHORT}base qt${QT_SHORT}multimedia qt${QT_SHORT}multimediawidgets
fi
- |
if [ "$CXX" = "clang++" ]; then
brew update
brew install qt${QT_MAJOR} swift
fi
install:
- export QT_SELECT=qt${QT_MAJOR}
- $CXX --version
- |
if [ "$CXX" = "g++" ]; then
. /opt/qt${QT_SHORT}/bin/qt${QT_SHORT}-env.sh
fi
- |
if [ "$CXX" = "clang++" ]; then
brew link --force qt${QT_MAJOR}
fi
- ./update-mods
script:
- qmake -v
- qmake -r "QMAKE_CXX=$CXX" "QMAKE_CC=$CC"
- make
# Run with X11 display on Linux as some tests require a Qt app
- |
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
xvfb-run make -k check
else
make -k check
fi