forked from samsonasik/SlmQueueSqs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (45 loc) · 1.24 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
49
50
language: php
matrix:
fast_finish: true
include:
- php: 7.2
env:
- DEPENDENCIES="--prefer-lowest"
- php: 7.2
env:
- DEPENDENCIES=""
- php: 7.3
env:
- DEPENDENCIES="--prefer-lowest"
- php: 7.3
env:
- DEPENDENCIES=""
- php: 7.4
env:
- DEPENDENCIES="--prefer-lowest"
- php: 7.4
env:
- DEPENDENCIES=""
- EXECUTE_CS_CHECK=true
- TEST_COVERAGE=true
- php: 8.0
env:
- DEPENDENCIES="--prefer-lowest"
- php: 8.0
env:
- DEPENDENCIES=""
- EXECUTE_CS_CHECK=true
- TEST_COVERAGE=true
cache:
directories:
- $HOME/.composer/cache
- vendor
before_script:
- composer self-update
- composer update --prefer-source $DEPENDENCIES
- mkdir -p tests/build/logs
script:
- if [[ $TEST_COVERAGE == 'true' ]]; then php -dzend_extension=xdebug.so ./vendor/bin/phpunit --coverage-text --coverage-clover ./build/logs/clover.xml --configuration ./phpunit.xml.dist; else ./vendor/bin/phpunit --configuration ./phpunit.xml.dist; fi
- if [[ $EXECUTE_CS_CHECK == 'true' ]]; then ./vendor/bin/phpcs; fi
after_success:
- if [[ $TEST_COVERAGE == 'true' ]]; then php vendor/bin/php-coveralls -v; fi