-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
42 lines (33 loc) · 872 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
php:
- 5.6
- 7.0
- 7.1
- 7.2
# to support hhvm
dist: trusty
# faster builds on new travis setup not using sudo
sudo: false
# cache vendor dirs
cache:
directories:
- $HOME/.composer/cache
env:
matrix:
- COMPOSER_OPTIONS="--prefer-lowest --prefer-stable"
- COMPOSER_OPTIONS=""
install:
- travis_retry composer self-update && composer --version
- travis_retry composer global require "fxp/composer-asset-plugin:~1.3"
- export PATH="$HOME/.composer/vendor/bin:$PATH"
- travis_retry composer install --prefer-source --no-interaction
before_script:
- |
if [ $TRAVIS_PHP_VERSION = '5.6' ]; then
PHPUNIT_FLAGS="--coverage --coverage-xml"
fi
script:
- sh ./phpcs.sh
- php ./vendor/bin/codecept run unit -d $PHPUNIT_FLAGS
after_success:
- php ./vendor/bin/coveralls -v --exclude-no-stmt -c .coveralls.yml