forked from pantheon-systems/terminus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
executable file
·42 lines (33 loc) · 844 Bytes
/
.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
language: php
branches:
# Only test the master branch and semantic version tags.
only:
- master
- /^[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+.*$/
php:
- 5.5
- 5.6
- 7.0
sudo: false
env:
global:
- TERMINUS_TEST_MODE=1
- COMPOSER_PROCESS_TIMEOUT=3600
before_script:
- set -ex
- composer install --no-interaction --prefer-dist
script:
- composer clover
- phpenv config-rm xdebug.ini # XDebug is needed for code coverage, but makes things slow. It's enabled by default in Travis, we disable it here post-coverage run for speedy builds.
- composer cs
- composer phpunit
- composer behat
after_success:
- if [ $(phpenv version-name) = "7.0" ]; then composer coveralls; fi
notifications:
email:
on_success: never
cache:
directories:
- $HOME/.cache/composer
- $HOME/.composer/cache