-
Notifications
You must be signed in to change notification settings - Fork 20
/
.travis.yml
91 lines (88 loc) · 4.24 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
language: generic
matrix:
include:
#- os: linux
# dist: xenial
# sudo: required
# language: generic
# env:
# - CONF_NAME=travis-stable-conda FLAVOUR=local VERSION=stable LOCALENV_TYPE=conda EXTRAOPT=""
- os: linux
dist: bionic
sudo: required
language: generic
env:
- CONF_NAME=travis-stable-venv FLAVOUR=local VERSION=stable LOCALENV_TYPE=virtualenv EXTRAOPT=""
#- os: linux
# dist: xenial
# sudo: required
# language: generic
# env:
# - CONF_NAME=travis-stable-conda-noroot FLAVOUR=local VERSION=stable LOCALENV_TYPE=conda EXTRAOPT="--noroot"
- os: linux
dist: bionic
sudo: required
language: generic
env:
- CONF_NAME=travis-stable-venv-noroot FLAVOUR=local VERSION=stable LOCALENV_TYPE=virtualenv EXTRAOPT="--noroot"
#- os: linux
# dist: xenial
# sudo: required
# language: generic
# env:
# - CONF_NAME=travis-dev-conda FLAVOUR=local VERSION=development LOCALENV_TYPE=conda EXTRAOPT=""
- os: linux
dist: bionic
sudo: required
language: generic
env:
- CONF_NAME=travis-dev-venv FLAVOUR=local VERSION=development LOCALENV_TYPE=virtualenv EXTRAOPT=""
#- os: osx
# language: generic
# env:
# - CONF_NAME=travis-stable-conda FLAVOUR=local VERSION=stable LOCALENV_TYPE=conda EXTRAOPT=""
- os: osx
osx_image: xcode11
language: generic
node_js:
- "13"
env:
- CONF_NAME=travis-stable-venv FLAVOUR=local VERSION=stable LOCALENV_TYPE=virtualenv EXTRAOPT=""
- os: osx
osx_image: xcode11
language: generic
node_js:
- "13"
env:
- CONF_NAME=travis-dev-venv FLAVOUR=local VERSION=development LOCALENV_TYPE=virtualenv EXTRAOPT=""
#- os: osx
# language: generic
# env:
# - CONF_NAME=travis-dev-conda FLAVOUR=local VERSION=development LOCALENV_TYPE=conda EXTRAOPT=""
- os: linux
dist: bionic
sudo: required
language: generic
env:
- CONF_NAME=travis-stable-global FLAVOUR=global VERSION=stable LOCALENV_TYPE="virtualenv"
- os: linux
dist: bionic
sudo: required
language: generic
env:
- CONF_NAME=travis-dev-global FLAVOUR=global VERSION=development LOCALENV_TYPE="virtualenv"
notifications:
irc:
channels:
- "irc.uvt.nl#gitlama"
template:
- "%{repository_slug}#%{build_number} %{message} --> %{build_url}"
skip_join: true
install:
- echo -e "[hostsecurity]\ndisabletls10warning = true" > ~/.hgrc
#- if [[ $TRAVIS_OS_NAME == "linux" ]]; then sudo /etc/init.d/postgresql stop; sudo apt remove oracle-java8-installer oracle-java8-unlimited-jce-policy oracle-java9-installer oracle-java9-set-default oracle-java9-unlimited-jce-policy postgresql-9.3 postgresql-9.4 postgresql-9.5 postgresql-9.6 postgresql-contrib-9.3 postgresql-contrib-9.4 postgresql-contrib-9.5 postgresql-contrib-9.6 ; fi #this is in the way and breaks apt updates for some reason
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then sudo rm -rf /opt/pyenv; fi
- if [[ $TRAVIS_OS_NAME == "linux" ]] && [[ "$EXTRAOPT" == "--noroot" ]]; then sudo apt-get install pkg-config git-core make gcc g++ autoconf automake autoconf-archive libtool autotools-dev libicu-dev libxml2-dev libxslt1-dev libbz2-dev zlib1g-dev libtar-dev libaspell-dev libhunspell-dev libboost-all-dev libgnutls28-dev python3 python-virtualenv python3-dev libexttextcat-dev; fi #install global dependencies manually because we pretend not to have root
- if [[ $TRAVIS_OS_NAME == "osx" ]]; then wget https://pypi.python.org/packages/source/p/pip/pip-8.0.1.tar.gz && tar -xvzf pip*.tar.gz; cd pip*; sudo python setup.py install; cd ..; fi #prevent bootstrap from querying this interactively
script:
- bash bootstrap.sh --name $CONF_NAME --branch master --flavour $FLAVOUR --version $VERSION --env $LOCALENV_TYPE --private --minimal --prefer-distro --noninteractive $EXTRAOPT --verbose --nosysupdate