forked from nexylan/slack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (40 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
49
50
branches:
only:
- master
language: php
php:
- 7.4
- 8.0
- nightly
env:
global:
- PATH="$HOME/.composer/vendor/bin:$PATH"
matrix:
fast_finish: true
include:
- php: 7.4
env: COMPOSER_FLAGS="--prefer-lowest"
- php: 7.4
env: LINT="1"
- php: 7.4
- php: 7.4
- php: 8.0
allow_failures:
- php: nightly
- env: SYMFONY_VERSION=dev-master
sudo: false
cache:
directories:
- $HOME/.composer/cache/files
before_install:
- composer global require satooshi/php-coveralls:@stable sllh/composer-lint:@stable phpunit/phpunit:@stable --no-update
install:
- wget http://cs.sensiolabs.org/download/php-cs-fixer-v2.phar --output-document php-cs-fixer.phar
- composer global update --prefer-dist --no-interaction
- composer update --prefer-dist --no-interaction $COMPOSER_FLAGS
script:
- if [ "$LINT" = "1" ]; then composer validate; fi;
- if [ "$LINT" = "1" ]; then php php-cs-fixer.phar fix --verbose --dry-run; fi;
- if [ "$LINT" != "1" ]; then phpunit --coverage-clover build/logs/clover.xml; fi;
after_script:
- if [ "$LINT" != "1" ]; coveralls -v; fi;