-
Notifications
You must be signed in to change notification settings - Fork 17
/
.travis.yml
42 lines (33 loc) · 819 Bytes
/
.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
language: php
php:
- 7.2
- 7.3
sudo: false
env:
global:
- DEFAULT=1
- PHPSTAN=0
matrix:
fast_finish: true
include:
- php: 7.2
env: PHPCS=1
- php: 7.2
env: CODECOVERAGE=1 DEFAULT=0
- php: 7.3
env: PHPSTAN=1
install:
- composer install --prefer-dist --no-interaction
before_script:
- phpenv rehash
- set +H
script:
- sh -c "if [ '$DEFAULT' = '1' ]; then composer test; fi"
- sh -c "if [ '$PHPSTAN' = '1' ]; then composer phpstan; fi"
- sh -c "if [ '$PHPCS' = '1' ]; then composer cs-check; fi"
- sh -c "if [ '$CODECOVERAGE' = '1' ]; then phpdbg -qrr vendor/bin/phpunit --coverage-clover=clover.xml || true; fi"
after_success:
- bash <(curl -s https://codecov.io/bash)
- vendor/bin/codacycoverage clover clover.xml
notifications:
email: false