forked from cakephp/phinx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
41 lines (33 loc) · 948 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
sudo: false
language: php
addons:
postgresql: "9.2"
php:
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
- hhvm
env:
- COMPOSER_FLAGS=--prefer-lowest
matrix:
exclude:
- php: hhvm
env: COMPOSER_FLAGS=--prefer-lowest
include:
- php: hhvm
env: COMPOSER_FLAGS=
- php: 7
env: PHPSTAN=1
before_script:
- travis_retry composer self-update
- travis_retry composer update --no-interaction --prefer-source --prefer-stable ${COMPOSER_FLAGS}
- mysql -e 'create database phinx_testing;'
- psql -c 'create database phinx_testing;' -U postgres
script:
- vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
- if [[ $PHPSTAN = 1 ]]; then composer require --dev phpstan/phpstan:^0.6 && vendor/bin/phpstan analyse -c phpstan.neon -l 3 src; fi
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover