-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
45 lines (36 loc) · 1.15 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
dist: xenial
addons:
apt:
packages:
- ant-optional
language: php
php:
- "7.4"
- "7.3"
- "7.2"
- "7.1"
- "5.6"
matrix:
fast_finish: true
before_install:
- echo "memory_limit = -1" > travis.php.ini && phpenv config-add travis.php.ini
install:
- travis_retry composer self-update && composer --version
# We have to supply the branch alias here again as travis checks out a commit hash and therefore destroys the
# circular dependency phpcq/all-tasks -> phpcq/autoload-validation -> phpcq/all-tasks.
- >
if [ "x${TRAVIS_TAG}" != "x" ]; then
COMPOSER_ROOT_VERSION=${TRAVIS_TAG} travis_retry composer update --prefer-dist --no-interaction;
else
COMPOSER_ROOT_VERSION=$([[ ${TRAVIS_BRANCH} =~ hotfix/([0-9.]*(-(alpha|beta|rc)[0-9]+)?) ]] \
&& echo ${BASH_REMATCH[1]} \
|| echo dev-${TRAVIS_BRANCH}) \
travis_retry composer update --prefer-dist --no-interaction;
fi
script: ant -keep-going
# Hack to make things work again - we can not use a shallow repository.
git:
depth: 2147483647
cache:
directories:
- vendor