From 428ac0abc956895e743665e13cccedbd8f2e455b Mon Sep 17 00:00:00 2001 From: maso Date: Tue, 14 Nov 2017 00:18:52 +0330 Subject: [PATCH 1/2] Update build process. --- .travis.yml | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4064d0e..5890d7b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,14 @@ language: php php: - '5.6' - - '7.0' - '7.1' +services: + - mysql + +git: + depth: 1 + mysql: database: test username: root @@ -11,12 +16,23 @@ mysql: before_install: - sudo apt-get update > /dev/null - + - mysql -e 'CREATE DATABASE IF NOT EXISTS test;' + install: - - composer 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 - - php coverage-checker.php clover.xml 70 + - 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) \ No newline at end of file From 43b70a6ba70a6ffe3674589164cec4afc5025a03 Mon Sep 17 00:00:00 2001 From: maso Date: Tue, 14 Nov 2017 00:23:36 +0330 Subject: [PATCH 2/2] .coveralls.yml --- .coveralls.yml | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .coveralls.yml diff --git a/.coveralls.yml b/.coveralls.yml new file mode 100644 index 0000000..ac3f05c --- /dev/null +++ b/.coveralls.yml @@ -0,0 +1,3 @@ +service_name: travis-ci +coverage_clover: tests/clover.xml +json_path: tests/coveralls-upload.json \ No newline at end of file