-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (44 loc) · 1.16 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
dist: xenial
addons:
apt:
packages:
- ant-optional
language: php
php:
- "7.3"
- "7.2"
- "7.1"
- "nightly"
env:
- CONTAO_VERSION=~4.6.0
- CONTAO_VERSION=~4.5.0
- CONTAO_VERSION=~4.4.0
matrix:
exclude:
allow_failures:
- env: CONTAO_VERSION=~4.6.0
- env: CONTAO_VERSION=~4.5.0
before_script:
- echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- travis_retry composer self-update && composer --version
- travis_retry composer require contao/core-bundle $CONTAO_VERSION --no-update
- >
if [ "x${TRAVIS_TAG}" != "x" ]; then
export COMPOSER_ROOT_VERSION=${TRAVIS_TAG}
else
export COMPOSER_ROOT_VERSION=$([[ ${TRAVIS_BRANCH} =~ hotfix/([0-9.]*(-(alpha|beta|rc)[0-9]+)?) ]] \
&& echo ${BASH_REMATCH[1]} \
|| echo dev-${TRAVIS_BRANCH})
fi
- echo "Using root version ${COMPOSER_ROOT_VERSION}"
- travis_retry composer update --prefer-dist --no-interaction
script: ant -keep-going
# Hack to make things work again - we can not use a shallow repository.
git:
depth: 2147483647
branches:
except:
- /.*-translation/
cache:
directories:
- vendor