mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-01-17 13:38:20 +01:00
39 lines
1.0 KiB
YAML
39 lines
1.0 KiB
YAML
language: php
|
|
dist: trusty
|
|
sudo: false
|
|
|
|
branches:
|
|
except:
|
|
- l10n_2.3
|
|
- l10n_2.4
|
|
|
|
before_install:
|
|
- cp .env.example .env
|
|
- phpenv config-rm xdebug.ini
|
|
|
|
install:
|
|
- travis_retry composer install --no-interaction --no-suggest
|
|
|
|
jobs:
|
|
include:
|
|
- stage: Security check
|
|
script:
|
|
- wget https://get.sensiolabs.org/security-checker.phar
|
|
- php security-checker.phar security:check ./composer.lock
|
|
php: 7.1
|
|
- stage: Unit tests
|
|
script: vendor/bin/phpunit
|
|
php: 7.1
|
|
- stage: Unit tests
|
|
script: vendor/bin/phpunit
|
|
php: 7.2
|
|
- stage: Unit tests
|
|
script: vendor/bin/phpunit
|
|
php: 7.3
|
|
- stage: Code coverage
|
|
script:
|
|
- vendor/bin/phpunit --coverage-clover build/logs/clover.xml
|
|
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then wget https://scrutinizer-ci.com/ocular.phar; fi
|
|
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml; fi
|
|
php: 7.1
|