forked from ezSQL/ezsql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpause.travis.yml
41 lines (34 loc) · 1.22 KB
/
pause.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
language: php
# Versions of PHP you want your project run with.
php:
- 7.0
- 7.1
- 7.2
- 7.3
env:
- MYSQL_HOST=127.0.0.1 MYSQL_USER=root
services:
- mysql
- postgresql
# Commands to be run before your environment runs.
before_script:
- composer self-update
- composer require phpstan/phpstan "0.11.3"
- mysql -e 'CREATE DATABASE IF NOT EXISTS ez_test;'
- mysql -e "CREATE USER ez_test@localhost IDENTIFIED BY 'ezTest'; GRANT ALL ON ez_test.* TO ez_test@localhost; FLUSH PRIVILEGES;"
- psql -c 'CREATE DATABASE ez_test;' -U postgres
- psql -c "CREATE USER ez_test WITH PASSWORD 'ezTest';" -U postgres
# - mysql -e 'GRANT ALL PRIVILEGES ON ez_test.* TO ez_test@localhost;'
# - mysql -e "SET PASSWORD FOR 'ez_test'@'localhost' = PASSWORD('ezTest')"
after_success:
- bash <(curl -s https://codecov.io/bash)
- travis_retry php vendor/bin/php-coveralls
# Commands you want to run that will verify your build.
script:
- vendor/bin/phpunit --coverage-clover=coverage.xml
- vendor/bin/phpstan analyse lib tests --level=1
# allow_failures: Allow this build to fail under the specified environments.
# fast_finish: If your build fails do not continue trying to build, just stop.
matrix:
allow_failures:
- php: 7.0