-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
executable file
·61 lines (53 loc) · 1.36 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
language: php
env:
global:
- EXCLUDEGROUP=travis-ci-exclude
- DISABLE_XDEBUG=true
git:
depth: 2
matrix:
include:
- php: hhvm
sudo: required
dist: trusty
group: edge
- php: nightly
- php: 7.1
env:
- LINT=true
- php: 7.0
- php: 5.6
env:
- EXCLUDEGROUP=travis-ci-exclude-56
fast_finish: true
allow_failures:
- php: nightly
- php: hhvm
cache:
directories:
- $HOME/.composer/cache
- $HOME/.php-cs-fixer
notifications:
email: false
before_script:
- phpenv config-rm xdebug.ini || true
- travis_retry composer self-update
- travis_retry composer install --no-interaction
- travis_retry composer dump-autoload --optimize
script:
# Use custom script to avoid the risk of terminating the build process
- ./bin/travis/fail-non-feature-topic-branch-pull-request
# Verify application version and Git tag match on tagged builds
- if [[ ! -z "$TRAVIS_TAG" ]]; then
composer lpv:application-version-guard;
fi
# Verify coding standard compliance only once
- if [[ $LINT = true ]]; then
composer lpv:cs-lint;
fi
- if [[ $EXCLUDEGROUP = travis-ci-exclude ]]; then
composer lpv:test -- --exclude-group travis-ci-exclude;
fi
- if [[ $EXCLUDEGROUP = travis-ci-exclude-56 ]]; then
composer lpv:test -- --exclude-group travis-ci-exclude-56;
fi