forked from vimeo/psalm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (40 loc) · 981 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
43
44
45
46
47
language: php
matrix:
exclude:
- php: 7.0
env: DEPS="" COVERALLS=true
- php: 7.1
env: DEPS="" COVERALLS=true
- php: 7.2
env: DEPS="" COVERALLS=""
- php: nightly
env: DEPS="" COVERALLS=true
allow_failures:
- php: nightly
php:
- 7.0
- 7.1
- 7.2
- nightly
env:
- DEPS="--prefer-lowest --prefer-stable" COVERALLS=""
- DEPS="" COVERALLS=""
- DEPS="" COVERALLS=true
cache:
directories:
- ./vendor
before_install:
# determine INI file
- export INI_DIR=~/.phpenv/versions/$(phpenv version-name)/etc/conf.d
- export INI=$INI_DIR/travis.ini
# disable default memory limit
- echo memory_limit = 2G >> $INI
- if [[ $COVERALLS = "" && -f $INI_DIR/xdebug.ini ]]; then phpenv config-rm xdebug.ini; fi
install:
- composer --prefer-source $DEPS update
script:
- vendor/bin/phpunit
- ./psalm --find-dead-code
- vendor/bin/phpcs
after_success:
- travis_retry php vendor/bin/php-coveralls -v