mirror of
https://github.com/silverstripe/silverstripe-behat-extension
synced 2024-10-22 17:05:32 +02:00
33 lines
711 B
YAML
33 lines
711 B
YAML
language: php
|
|
|
|
dist: precise
|
|
|
|
sudo: false
|
|
|
|
cache:
|
|
directories:
|
|
- $HOME/.composer/cache/files
|
|
|
|
php:
|
|
- 7.2
|
|
- 7.3
|
|
- 7.4
|
|
|
|
env:
|
|
matrix:
|
|
- 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:2.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:
|
|
- if [[ $PHPUNIT_TEST ]]; then vendor/bin/phpunit tests/php; fi
|
|
- if [[ $PHPCS_TEST ]]; then composer run-script lint; fi
|