Cachet/.travis.yml

46 lines
1.3 KiB
YAML
Raw Normal View History

2014-11-28 09:11:06 +00:00
language: php
2018-06-25 21:53:22 +01:00
dist: trusty
2017-06-28 22:00:51 +01:00
sudo: false
branches:
except:
2018-10-18 23:21:33 +01:00
- l10n_2.3
- l10n_2.4
2016-08-13 17:04:51 +01:00
before_install:
- cp .env.example .env
2018-10-18 23:13:12 +01:00
install:
- travis_retry composer install --no-interaction --no-suggest
2018-10-18 23:13:12 +01:00
jobs:
include:
- stage: Security check
script:
2018-11-14 21:33:32 +00:00
- phpenv config-rm xdebug.ini || true
2018-10-18 23:13:12 +01:00
- wget https://get.sensiolabs.org/security-checker.phar
- php security-checker.phar security:check ./composer.lock
php: 7.1
- stage: Unit tests
2018-11-14 21:33:32 +00:00
script:
- phpenv config-rm xdebug.ini || true
- vendor/bin/phpunit
2018-10-18 23:13:12 +01:00
php: 7.1
- stage: Unit tests
2018-11-14 21:33:32 +00:00
script:
- phpenv config-rm xdebug.ini || true
- vendor/bin/phpunit
2018-10-18 23:13:12 +01:00
php: 7.2
2018-10-18 23:21:00 +01:00
- stage: Unit tests
2018-11-14 21:33:32 +00:00
script:
- phpenv config-rm xdebug.ini || true
- vendor/bin/phpunit
2018-10-18 23:21:00 +01:00
php: 7.3
2018-10-18 23:13:12 +01:00
- stage: Code coverage
script:
- phpenv config-rm xdebug.ini || true
- phpdbg -qrr vendor/bin/phpunit --coverage-text --coverage-clover build/logs/clover.xml
2018-10-18 23:13:12 +01:00
- 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