forked from cachethq/cachet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (41 loc) · 1.25 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
language: php
dist: trusty
sudo: false
branches:
except:
- l10n_2.3
- l10n_2.4
before_install:
- cp .env.example .env
install:
- travis_retry composer install --no-interaction --no-suggest
jobs:
include:
- stage: Security check
script:
- phpenv config-rm xdebug.ini || true
- wget https://get.sensiolabs.org/security-checker.phar
- php security-checker.phar security:check ./composer.lock
php: 7.1
- stage: Unit tests
script:
- phpenv config-rm xdebug.ini || true
- vendor/bin/phpunit
php: 7.1
- stage: Unit tests
script:
- phpenv config-rm xdebug.ini || true
- vendor/bin/phpunit
php: 7.2
- stage: Unit tests
script:
- phpenv config-rm xdebug.ini || true
- vendor/bin/phpunit
php: 7.3
- stage: Code coverage
script:
- phpenv config-rm xdebug.ini || true
- phpdbg -qrr vendor/bin/phpunit --coverage-text --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