-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
49 lines (43 loc) · 1.06 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
language: php
git:
depth: 2
matrix:
include:
- php: hhvm
sudo: required
dist: trusty
group: edge
- php: nightly
- php: 7.1
env: LINT=true VALIDATE_GITATTRIBUTES=true
- php: 7.0
- php: 5.6
fast_finish: true
allow_failures:
- php: nightly
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 coding standard compliance only once
- if [[ $LINT = true ]]; then
composer ctl:cs-lint;
fi
- if [[ $VALIDATE_GITATTRIBUTES = true ]]; then
composer ctl:gitattributes-validation;
fi
- if [[ $(( $TRAVIS_BUILD_NUMBER % 25 )) = 0 ]]; then
composer ctl:test-all;
else
composer ctl:test;
fi