-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
58 lines (47 loc) · 1.16 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
51
52
53
54
55
56
57
58
language: php
php:
- 7.1
- 7.2
- 7.3
- 7.4snapshot
stages:
- typhp
- phpstan
- test
env:
matrix:
- DEPS="high"
- DEPS="low"
global:
- COMPOSER_MEMORY_LIMIT=-1
- DEFAULT_COMPOSER_FLAGS="--no-interaction --no-suggest --prefer-source"
cache:
directories:
- ./vendor
before_install:
- export INI_DIR=~/.phpenv/versions/$(phpenv version-name)/etc/conf.d
- echo memory_limit = 1G >> $INI_DIR/travis.ini
- if [[ -f $INI_DIR/xdebug.ini ]]; then phpenv config-rm xdebug.ini; fi
- composer clear-cache
install:
- if [[ "$DEPS" = 'high' ]]; then travis_retry composer $DEFAULT_COMPOSER_FLAGS update; fi
- if [[ "$DEPS" = 'low' ]]; then travis_retry composer $DEFAULT_COMPOSER_FLAGS --prefer-lowest --prefer-stable update; fi
script:
- vendor/bin/phpunit
matrix:
fast_finish: true
jobs:
include:
- stage: typhp
php: 7.3
script:
- bin/typhp
- stage: phpstan
php: 7.3
before_script:
- wget https://github.com/phpstan/phpstan/releases/download/0.11.16/phpstan.phar
- chmod +x phpstan.phar
script:
- ./phpstan.phar analyse src --level=5
notifications:
email: false