Skip to content

Commit a368137

Browse files
authored
initial commit for travis-ci
1 parent 793a2e2 commit a368137

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.travis.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
language: php
2+
3+
# Versions of PHP you want your project run with.
4+
php:
5+
- 5.6
6+
- 7.0
7+
- 7.1
8+
- 7.2
9+
10+
env:
11+
- MYSQL_HOST=127.0.0.1 MYSQL_USER=root
12+
13+
services:
14+
- mysql
15+
- postgresql
16+
17+
# Commands to be run before your environment runs.
18+
before_script:
19+
- composer self-update
20+
- composer require php-coveralls/php-coveralls
21+
- mysql -e 'CREATE DATABASE IF NOT EXISTS ez_test;'
22+
- mysql -e 'GRANT ALL PRIVILEGES ON ez_test.* TO ez_test@localhost;'
23+
- mysql -e "SET PASSWORD FOR 'ez_test'@'localhost' = PASSWORD('ezTest')"
24+
- psql -c 'CREATE DATABASE ez_test;' -U postgres
25+
- psql -c "CREATE USER ez_test WITH PASSWORD 'ezTest';" -U postgres
26+
27+
after_success:
28+
- travis_retry php vendor/bin/php-coveralls
29+
30+
# Commands you want to run that will verify your build.
31+
script:
32+
- mkdir -p build/logs
33+
- phpunit --coverage-clover build/logs/clover.xml
34+
35+
# allow_failures: Allow this build to fail under the specified environments.
36+
# fast_finish: If your build fails do not continue trying to build, just stop.
37+
matrix:
38+
allow_failures:
39+
- php: 5.6
40+
- php: 7.2
41+
env: KEY=VALUE
42+
fast_finish: true

0 commit comments

Comments
 (0)