-
Notifications
You must be signed in to change notification settings - Fork 132
/
.travis.yml
36 lines (31 loc) · 1.03 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
language: php
matrix:
include:
- php: 7.1
- php: 7.2
- php: 7.3
- php: 7.4snapshot
env: PHP_CS_FIXER_IGNORE_ENV=1
- php: nightly
env: PHP_CS_FIXER_IGNORE_ENV=1
fast_finish: true
cache:
directories:
- vendor/
- tools/
before_script:
- echo $TRAVIS_PHP_VERSION
- php -v
- PHP_VERSION=$(php -r "echo PHP_MAJOR_VERSION . '.' . PHP_MINOR_VERSION ;")
- echo $PHP_VERSION
- composer install -o -q --no-suggest
- if [[ "$PHP_VERSION" == '7.3' ]]; then composer require satooshi/php-coveralls ; fi
script:
- if [[ "$PHP_VERSION" < '8.0' ]]; then make phpcs ; fi
- if [[ "$PHP_VERSION" < '8.0' ]]; then make phpstan ; fi
- mkdir -p build/logs
- if [[ "$PHP_VERSION" < '7.4' ]]; then make test ; fi
- if [[ "$PHP_VERSIONN" == '7.4' ]]; then make test-coverage ; fi
- if [[ "$PHP_VERSION" > '7.4' ]]; then make test-php-8 ; fi
after_script:
- if [[ "$PHP_VERSION" == '7.3' ]]; then php vendor/bin/php-coveralls -v ; fi