-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
56 lines (42 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
language: php
# We need sudo as some of our externally-called scripts may need to install packages.
sudo: required
# Speed up subsequent builds by caching dependencies.
cache:
directories:
- vendor
# Skip builds on version tags, as they'll occur on the branch anyway.
branches:
except:
- /^v[0-9]\.[0-9]\.[0-9]/
# Build against common versions.
php:
- 7.0
- 7.1
- nightly
# Save time by only cloning the most recent commit.
git:
depth: 1
matrix:
allow_failures:
# PHP nightly is for advisory purposes only for now; we can allow this to fail.
- php: nightly
# Allow build to finish before our allowed failures run.
fast_finish: true
install:
# Install Composer dependencies.
# Disabled for now, see https://github.com/ChromatixAU/phpcs-config-chromatix/issues/6
#- travis_retry composer install --prefer-dist --no-interaction
script:
# Lint the PHP & XML.
- travis_retry curl --fail --location https://chr-cicd.herokuapp.com/scripts/php-lint.sh | bash
- travis_retry curl --fail --location https://chr-cicd.herokuapp.com/scripts/xml-lint.sh | bash
# Check code standards on our custom Sniffs.
# Disabled for now, see https://github.com/ChromatixAU/phpcs-config-chromatix/issues/6
#- composer lint
notifications:
email: false
webhooks:
urls:
- https://chr-cicd.herokuapp.com/hooks/travis.php
on_start: always