2015-04-07 23:15:22 +12:00
|
|
|
language: php
|
|
|
|
|
2017-08-02 11:48:53 +12:00
|
|
|
dist: precise
|
|
|
|
|
2015-07-20 16:07:22 +01:00
|
|
|
sudo: false
|
|
|
|
|
2017-08-02 11:48:53 +12:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.composer/cache/files
|
|
|
|
|
2015-04-07 23:15:22 +12:00
|
|
|
php:
|
2017-12-18 00:49:56 +13:00
|
|
|
- 7.2
|
2020-03-26 10:51:27 +00:00
|
|
|
- 7.3
|
|
|
|
- 7.4
|
2015-04-07 23:15:22 +12:00
|
|
|
|
2016-08-10 13:35:13 +12:00
|
|
|
env:
|
|
|
|
matrix:
|
|
|
|
- PHPUNIT_TEST=1
|
|
|
|
- PHPCS_TEST=1
|
|
|
|
|
2015-04-07 23:27:02 +12:00
|
|
|
before_script:
|
2017-08-02 11:48:53 +12:00
|
|
|
- export PATH=~/.composer/vendor/bin:$PATH
|
2017-03-24 15:01:56 +13:00
|
|
|
- composer validate
|
2016-08-10 13:35:13 +12:00
|
|
|
- composer install --dev --prefer-dist
|
2020-03-26 10:53:58 +00:00
|
|
|
- composer require --prefer-dist --no-update silverstripe/recipe-core:5.x-dev
|
2017-05-19 14:47:02 +12:00
|
|
|
- composer update
|
2017-08-02 11:48:53 +12: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 13:35:13 +12:00
|
|
|
- phpenv rehash
|
|
|
|
|
|
|
|
script:
|
2014-08-02 18:30:27 +12:00
|
|
|
- if [[ $PHPUNIT_TEST ]]; then vendor/bin/phpunit tests/php; fi
|
|
|
|
- if [[ $PHPCS_TEST ]]; then composer run-script lint; fi
|