This repository has been archived by the owner on Mar 6, 2018. It is now read-only.
forked from vszakats/hb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
177 lines (172 loc) · 5.23 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
# https://lint.travis-ci.org/
branches:
only:
- master
- prod
- test-travis
notifications:
email: false
git:
depth: 10
language: c
addons:
apt:
packages: &hb-linux-common
- firebird2.5-dev
- libbz2-dev
# - libcairo2-dev
- libcups2-dev
- libcurl4-openssl-dev
- libexpat1-dev
- libfreeimage-dev
- libgd2-xpm-dev
- libgpm-dev
- libgs-dev
- libicu-dev
- liblzo2-dev
- libmagic-dev
# - libminizip-dev (requires Ubuntu 'xenial')
- libmxml-dev
- libmysqlclient-dev
# - libpcre2-dev (requires Ubuntu 'xenial')
- libpcre3-dev
- libpng12-dev
- libncurses5-dev
- libpq-dev
# - libqt5-dev
- librabbitmq-dev
- libsqlite3-dev
# - libslang2-dev
# - libx11-dev
- libyaml-dev
- unixodbc-dev
# - zlib1g-dev
matrix:
include:
- os: linux
# https://docs.travis-ci.com/user/reference/trusty/
dist: &hb-linux-image trusty
sudo: false
compiler: clang
env: [ HB_CCSUFFIX=-5.0 ]
addons:
apt:
packages: [ *hb-linux-common, clang-5.0 ]
sources: llvm-toolchain-trusty-5.0
- os: linux
dist: *hb-linux-image
sudo: false
compiler: gcc
env: [ HB_CCSUFFIX=-7 ]
addons:
apt:
packages: [ *hb-linux-common, gcc-7, g++-7 ]
sources: ubuntu-toolchain-r-test
- os: linux
dist: *hb-linux-image
sudo: required
group: edge
compiler: gcc
services: [ docker ]
env: [ 'DOCKER_IMAGE=amazonlinux:latest' ]
- os: linux
dist: *hb-linux-image
sudo: required
group: edge
compiler: mingw-clang
services: [ docker ]
# https://hub.docker.com/_/ubuntu/
env: [ 'DOCKER_IMAGE=ubuntu:rolling' ]
- os: linux
dist: *hb-linux-image
sudo: required
group: edge
compiler: mingw-gcc
services: [ docker ]
# https://hub.docker.com/_/ubuntu/
env: [ 'DOCKER_IMAGE=ubuntu:rolling' ]
- os: osx
# https://docs.travis-ci.com/user/reference/osx/
osx_image: &hb-mac-image xcode9.1
compiler: clang
- os: osx
osx_image: *hb-mac-image
compiler: mingw-clang
- os: osx
osx_image: *hb-mac-image
compiler: mingw-gcc
before_install:
- |
export HB_CI_THREADS=4
export HB_BUILD_3RD_DYN=yes
if [ -n "${DOCKER_IMAGE}" ]; then
if [ "${CC}" = 'mingw-gcc' ] || \
[ "${CC}" = 'mingw-clang' ]; then
DOCKER_SCRIPT=./package/mpkg_win_docker.sh
elif [ "${TRAVIS_OS_NAME}" = 'linux' ]; then
DOCKER_SCRIPT=./package/mpkg_rpm_docker.sh
fi
time docker pull "${DOCKER_IMAGE}"
time docker run -it -v "${PWD}:${PWD}" -w "${PWD}" \
--env-file <(env | grep -E '^(HB_|TRAVIS_|GITHUB_|CC)') \
"${DOCKER_IMAGE}" \
sh -c "${DOCKER_SCRIPT}"
elif [ "${TRAVIS_OS_NAME}" = 'osx' ]; then
export HOMEBREW_NO_AUTO_UPDATE=1
time travis_retry brew update > /dev/null
if [ "${CC}" = 'mingw-gcc' ] || \
[ "${CC}" = 'mingw-clang' ]; then
[ "${CC}" = 'mingw-clang' ] && _optpkg='llvm'
time travis_retry brew install --force-bottle p7zip mingw-w64 ${_optpkg} jq osslsigncode dos2unix gpg
time travis_retry brew install --force-bottle --build-bottle wine
time wineboot --init
export MXE_DONT_INSTALL=gcc
# time travis_wait ./package/mpkg_win_dl_mxe.sh \
# mxe-{i686,x86-64}-w64-mingw32.static-{bzip2,expat,libharu,libpng,lzo,minizip,mxml,pcre,sqlite,zlib}
# time travis_wait ./package/mpkg_win_dl_mxe.sh \
# mxe-{i686,x86-64}-w64-mingw32.shared-{cairo,file,ghostscript,icu4c,libmysqlclient,postgresql} \
# mxe-{i686,x86-64}-w64-mingw32.static-{freeimage,gd}
time travis_wait ./package/mpkg_win_dl_mxe.sh \
mxe-{i686,x86-64}-w64-mingw32.shared-pcre2
else
# time travis_retry brew install pcre zlib
time travis_retry brew install --force-bottle --build-bottle fontconfig || true
time travis_retry brew install --force-bottle \
bzip2 expat libharu libmxml libpng lzo minizip pcre2 sqlite \
cairo curl freeimage gd ghostscript icu4c libmagic libyaml \
mariadb ncurses [email protected] postgresql qt rabbitmq-c s-lang unixodbc
fi
export MACOSX_DEPLOYMENT_TARGET=10.11
fi
script:
- |
if [ -z "${DOCKER_IMAGE}" ]; then
if [ "${CC}" = 'mingw-gcc' ] || \
[ "${CC}" = 'mingw-clang' ]; then
./package/mpkg_win_ci.sh
else
ls -lA "$(dirname "$(which "${CC}${HB_CCSUFFIX}")")/${CC}"*
[ "${CC#*clang*}" != "${CC}" ] && \
ls -lA "$(dirname "$(which "${CC}${HB_CCSUFFIX}")")/llvm"*
"${CC}${HB_CCSUFFIX}" -v
[ "${CC}" = 'gcc' ] && \
"${CC}${HB_CCSUFFIX}" -dumpversion && \
"${CC}${HB_CCSUFFIX}" -dumpfullversion
HB_COMPILER="${CC}" time make -j "${HB_CI_THREADS}"
fi
fi
deploy:
skip_cleanup: true
provider: releases
api_key: ${GITHUB_TOKEN}
file_glob: true
file: harbour-snapshot-win-built-on-*.7z
tag_name: v3.4.0dev
target_commitish: ${TRAVIS_COMMIT}
draft: false
prerelease: true
overwrite: true
on:
tag: true
branch: master
condition: "${CC} = mingw-clang"