-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/2.1.10'
- Loading branch information
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
service_name: travis-ci | ||
coverage_clover: tests/clover.xml | ||
json_path: tests/coveralls-upload.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
language: php | ||
php: | ||
- '5.6' | ||
- '7.1' | ||
|
||
services: | ||
- mysql | ||
|
||
git: | ||
depth: 1 | ||
|
||
mysql: | ||
database: test | ||
username: root | ||
encoding: utf8 | ||
|
||
before_install: | ||
- sudo apt-get update > /dev/null | ||
- mysql -e 'CREATE DATABASE IF NOT EXISTS test;' | ||
|
||
install: | ||
# Install composer packages, will also trigger dump-autoload | ||
- travis_retry composer install --no-interaction | ||
# Install coveralls.phar | ||
- wget -c -nc --retry-connrefused --tries=0 https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar | ||
- chmod +x coveralls.phar | ||
- php coveralls.phar --version | ||
|
||
script: | ||
- cd tests | ||
- php run.php | ||
- cd .. | ||
|
||
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) |