silverstripe-behat-extension/.travis.yml
Maxime Rainville 6df2a983e3
BUG Avoid trying to get singletons fon non-existan classes (#192)
BUG Avoid trying to get singletons for non-existant classes
2020-04-29 09:54:45 +12:00

33 lines
776 B
YAML

language: php
dist: xenial
sudo: false
cache:
directories:
- $HOME/.composer/cache/files
matrix:
include:
- php: 7.1
env: PHPUNIT_TEST=1
- php: 7.2
env: PHPUNIT_TEST=1
- php: 7.3
env: PHPUNIT_TEST=1 PHPCS_TEST=1
before_script:
- export PATH=~/.composer/vendor/bin:$PATH
- composer validate
- composer install --dev --prefer-dist
- composer require --prefer-dist --no-update silverstripe/recipe-core:^4
- 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:
- if [[ $PHPUNIT_TEST ]]; then vendor/bin/phpunit tests/php; fi
- if [[ $PHPCS_TEST ]]; then composer run-script lint; fi