2015-04-07 13:15:22 +02:00
|
|
|
language: php
|
|
|
|
|
2017-08-02 01:48:53 +02:00
|
|
|
dist: precise
|
|
|
|
|
2015-07-20 17:07:22 +02:00
|
|
|
sudo: false
|
|
|
|
|
2017-08-02 01:48:53 +02:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.composer/cache/files
|
|
|
|
|
2015-04-07 13:15:22 +02:00
|
|
|
php:
|
2015-12-03 00:22:45 +01:00
|
|
|
- 5.6
|
2015-04-07 13:15:22 +02:00
|
|
|
|
2016-08-10 03:35:13 +02:00
|
|
|
env:
|
|
|
|
matrix:
|
|
|
|
- PHPUNIT_TEST=1
|
|
|
|
- PHPCS_TEST=1
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
2017-03-20 22:55:05 +01:00
|
|
|
- php: 5.6
|
2016-08-10 03:35:13 +02:00
|
|
|
env: PHPUNIT_TEST=1
|
2017-03-24 03:06:20 +01:00
|
|
|
- php: 7.0
|
|
|
|
env: PHPUNIT_TEST=1
|
2014-08-02 08:30:27 +02:00
|
|
|
- php: 7.1.2
|
2017-03-24 03:06:20 +01:00
|
|
|
env: PHPUNIT_TEST=1
|
2016-08-10 03:35:13 +02:00
|
|
|
|
2015-04-07 13:27:02 +02:00
|
|
|
before_script:
|
2017-08-02 01:48:53 +02:00
|
|
|
- export PATH=~/.composer/vendor/bin:$PATH
|
2017-03-24 03:01:56 +01:00
|
|
|
- composer validate
|
2016-08-10 03:35:13 +02:00
|
|
|
- composer install --dev --prefer-dist
|
2017-08-02 01:48:53 +02:00
|
|
|
- composer require --prefer-dist --no-update silverstripe/recipe-core:1.0.x-dev
|
2017-05-19 04:47:02 +02:00
|
|
|
- composer update
|
2017-08-02 01:48:53 +02:00
|
|
|
- if [[ $PHPCS_TEST ]]; then composer global require squizlabs/php_codesniffer:^3 --prefer-dist --no-interaction --no-progress --no-suggest -o; fi
|
2016-08-10 03:35:13 +02:00
|
|
|
- phpenv rehash
|
|
|
|
|
|
|
|
script:
|
2014-08-02 08:30:27 +02:00
|
|
|
- if [[ $PHPUNIT_TEST ]]; then vendor/bin/phpunit tests/php; fi
|
|
|
|
- if [[ $PHPCS_TEST ]]; then composer run-script lint; fi
|