forked from wkhtmltopdf/wkhtmltopdf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
69 lines (62 loc) · 1.93 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
68
69
language: cpp
dist: trusty
sudo: true
email: false
matrix:
include:
- os: linux
env: TARGET=system-qt4-linux
addons:
apt:
packages:
- libqtwebkit-dev
- os: linux
env: TARGET=system-qt5-linux
addons:
apt:
packages:
- libqt5webkit5-dev
- libqt5xmlpatterns5-dev
- libqt5svg5-dev
- os: linux
env: TARGET=custom-qt4-linux
addons:
apt:
packages:
- zlib1g-dev
- libpng12-dev
- libjpeg-turbo8-dev
- libssl-dev
- libfreetype6-dev
- libicu-dev
- libfontconfig1-dev
- libx11-dev
- libxext-dev
- libxrender-dev
- libxcb1-dev
- os: osx
osx_image: xcode8.2
env: TARGET=custom-qt4-osx
- os: linux
env: TARGET=custom-qt4-windows
addons:
apt:
packages:
- g++-mingw-w64-i686
install:
- sed -i -e 's/ SYNCQT_OPTS=/ SYNCQT_OPTS=-quiet/g' qt/configure
- test -n "$CC" && unset CC
- test -n "$CXX" && unset CXX
script:
- >
if [[ $TARGET == "system-qt4-linux" ]]; then qmake-qt4 CONFIG+=silent && make;
elif [[ $TARGET == "system-qt5-linux" ]]; then /usr/lib/x86_64-linux-gnu/qt5/bin/qmake CONFIG+=silent && make;
elif [[ $TARGET == "custom-qt4-linux" ]]; then CFLAGS=-w CXXFLAGS=-w scripts/build.py posix-local -debug;
elif [[ $TARGET == "custom-qt4-windows" ]]; then CFLAGS=-w CXXFLAGS=-w scripts/build.py mingw-w64-cross-win32 -debug;
elif [[ $TARGET == "custom-qt4-osx" ]]; then
WKHTMLTOX_QT_CONFIG="remove:-openssl -no-openssl" \
CFLAGS="-w -mmacosx-version-min=10.6" \
CXXFLAGS="-w -mmacosx-version-min=10.6" \
OBJCFLAGS="-w -mmacosx-version-min=10.6" \
scripts/build.py osx-cocoa-x86-64 -debug;
fi