40 lines
841 B
YAML
Raw Permalink Normal View History

2015-04-07 23:15:22 +12:00
language: php
dist: precise
sudo: false
cache:
directories:
- $HOME/.composer/cache/files
2015-04-07 23:15:22 +12:00
php:
2015-12-03 12:22:45 +13:00
- 5.6
2015-04-07 23:15:22 +12:00
env:
matrix:
- PHPUNIT_TEST=1
- PHPCS_TEST=1
matrix:
include:
2017-03-21 10:55:05 +13:00
- php: 5.6
env: PHPUNIT_TEST=1
2017-03-24 15:06:20 +13:00
- php: 7.0
env: PHPUNIT_TEST=1
2014-08-02 18:30:27 +12:00
- php: 7.1.2
2017-03-24 15:06:20 +13:00
env: PHPUNIT_TEST=1
before_script:
- export PATH=~/.composer/vendor/bin:$PATH
2017-03-24 15:01:56 +13:00
- composer validate
- composer install --dev --prefer-dist
- composer require --prefer-dist --no-update silverstripe/recipe-core:1.0.x-dev
- composer update
- if [[ $PHPCS_TEST ]]; then composer global require squizlabs/php_codesniffer:^3 --prefer-dist --no-interaction --no-progress --no-suggest -o; fi
- 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