-
Notifications
You must be signed in to change notification settings - Fork 13
/
.travis.yml
44 lines (35 loc) · 1.01 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
sudo: false
language: php
addons:
apt:
sources:
- mysql-5.7-trusty
packages:
- mysql-server
- mysql-client
php:
- 7.2
services:
- mysql
before_install:
- mysql_upgrade --force -uroot
- mysql -uroot -e 'CREATE DATABASE IF NOT EXISTS test;'
- mysql -uroot test < ./tests/db_mysql.sql
- mysql -uroot test < ./tests/db_values.sql
before_script:
- mkdir -p _clover
- ls -al
script:
- ./vendor/bin/phpunit --coverage-clover _clover/clover.xml
install:
# Install composer packages
- travis_retry composer install --no-interaction --no-suggest
# Install coveralls.phar
- wget -c -nc --retry-connrefused --tries=0 https://github.com/php-coveralls/php-coveralls/releases/download/v2.0.0/php-coveralls.phar -O coveralls.phar
- chmod +x coveralls.phar
- php coveralls.phar --version
after_success:
# Submit coverage report to Coveralls servers, see .coveralls.yml
- travis_retry php coveralls.phar -v
# Submit coverage report to codecov.io
- bash <(curl -s https://codecov.io/bash)