-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy path.travis.yml
More file actions
30 lines (30 loc) · 760 Bytes
/
.travis.yml
File metadata and controls
30 lines (30 loc) · 760 Bytes
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
language: php
sudo: false
php:
- 7.1
- 7.2
env:
global:
# We need to prefer source to get PHPStan test directory. Otherwise, it is removed from ZIP
- DEFAULT_COMPOSER_FLAGS="--no-interaction --no-progress --optimize-autoloader --prefer-source"
- TASK_TESTS=1
- TASK_TESTS_COVERAGE=0
- TASK_CS=1
- TASK_SCA=0
matrix:
- COMPOSER_FLAGS="--prefer-lowest"
- COMPOSER_FLAGS=""
cache:
directories:
- "$HOME/.composer/cache"
before_install:
- travis_retry composer global require $DEFAULT_COMPOSER_FLAGS hirak/prestissimo
install:
- travis_retry composer update $DEFAULT_COMPOSER_FLAGS $COMPOSER_FLAGS
- composer info -D | sort
- mkdir tmp
script:
- vendor/bin/phpunit --verbose;
- composer phpstan
after_success:
- vendor/bin/coveralls -v