From b189fedfcc7bdd45a1699bfdfbc083e0e1f7de9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20B=C3=A9rub=C3=A9?= Date: Sun, 18 Aug 2019 11:22:23 -0600 Subject: [PATCH] add travis and coveralls config --- .coveralls.yml | 1 + .travis.yml | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 .coveralls.yml create mode 100644 .travis.yml diff --git a/.coveralls.yml b/.coveralls.yml new file mode 100644 index 00000000..a8172feb --- /dev/null +++ b/.coveralls.yml @@ -0,0 +1 @@ +json_path: coveralls-upload.json diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..5c792ac5 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,24 @@ +language: php + +dist: trusty + +matrix: + include: + - php: 7.1 + - php: 7.2 + - php: 7.3 + env: ANALYSIS='true' + - php: nightly + + allow_failures: + - php: nightly + +before_script: +- composer require php-coveralls/php-coveralls:^2.1.0 +- composer install -n + +script: +- if [[ "$ANALYSIS" == 'true' ]]; then vendor/bin/phpunit --coverage-clover clover.xml ; fi + +after_success: +- if [[ "$ANALYSIS" == 'true' ]]; then vendor/bin/php-coveralls --coverage_clover=clover.xml -v ; fi