forked from loopline-systems/closeio-api-wrapper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (41 loc) · 1.1 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
46
47
48
language: php
php:
- 7.3
- 7.4
- 8.0
- nightly
env:
- dependencies=highest
- dependencies=lowest
matrix:
fast_finish: true
allow_failures:
- php: 8.0
- php: nightly
cache:
directories:
- $HOME/.composer/cache
stages:
- Code style & static analysis
- Test
- Code coverage
jobs:
include:
- stage: Code style & static analysis
name: PHP CS Fixer
script: composer phpcs
env: dependencies=highest
- name: PHPStan
script: composer phpstan
env: dependencies=highest
- stage: Code coverage
php: 7.4
env: dependencies=highest
script: vendor/bin/phpunit --verbose --coverage-clover=build/logs/clover.xml
after_success:
- travis_retry php vendor/bin/php-coveralls --verbose
install:
- if [ "$dependencies" = "lowest" ]; then composer update --no-interaction --prefer-lowest --prefer-dist; fi;
- if [ "$dependencies" = "highest" ]; then composer update --no-interaction --prefer-dist; fi;
script:
- composer tests