silverstripe-behat-extension/.travis.yml

32 lines
756 B
YAML
Raw Normal View History

2015-04-07 13:15:22 +02:00
language: php
2019-09-24 03:58:47 +02:00
dist: xenial
sudo: false
cache:
directories:
- $HOME/.composer/cache/files
2015-04-07 13:15:22 +02:00
php:
- 7.2
2020-03-26 11:51:27 +01:00
- 7.3
- 7.4
2015-04-07 13:15:22 +02:00
env:
matrix:
- PHPUNIT_TEST=1
- PHPCS_TEST=1
before_script:
- export PATH=~/.composer/vendor/bin:$PATH
2017-03-24 03:01:56 +01:00
- composer validate
2020-04-01 19:07:21 +02:00
- composer require --no-update silverstripe/recipe-core:5.x-dev
- composer install --prefer-dist --no-interaction --no-progress --no-suggest --optimize-autoloader --verbose --profile
- 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 08:30:27 +02:00
- if [[ $PHPUNIT_TEST ]]; then vendor/bin/phpunit tests/php; fi
- if [[ $PHPCS_TEST ]]; then composer run-script lint; fi