forked from concretecms/concretecms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
43 lines (38 loc) · 1.15 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
language: php
sudo: false
php:
- 5.5
- 5.6
- 7.0
- 7.1
- nightly
env:
global:
- COMPOSER_DISABLE_XDEBUG_WARN=1
- PREFER_LOWEST=""
matrix:
fast_finish: true
include:
- php: 7.1
env: CODESTYLE="yes"
- php: 7.1
env: PREFER_LOWEST="--prefer-lowest"
- php: 5.5
env: PREFER_LOWEST="--prefer-lowest"
allow_failures:
- php: nightly
before_script:
- if [[ $TRAVIS_PHP_VERSION = hhvm ]]; then cat tests/travis.hhvm.ini >> /etc/hhvm/php.ini; else phpenv config-add tests/travis.php.ini; fi
- travis_retry composer update --prefer-source $PREFER_LOWEST # Run once to install magento's composer merger
- travis_retry composer update --prefer-source $PREFER_LOWEST # Run twice to install merged dependencies
- mysql -e "SET GLOBAL sql_mode = 'STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION,ONLY_FULL_GROUP_BY'"
- phpunit --version
script:
# Run PHPUnit if we're not checking code style, otherwise run phpcs
- if [[ $CODESTYLE != "yes" ]]; then composer test; else composer phpcs; fi
cache:
directories:
- vendor
- $HOME/.composer/cache
notifications:
email: false