From e34bfd1936a22f87f968e4ee46733daf7583fc3a Mon Sep 17 00:00:00 2001 From: SnakePin <18491360+SnakePin@users.noreply.github.com> Date: Thu, 8 Aug 2019 02:39:37 +0300 Subject: [PATCH] Update .travis.yml --- .travis.yml | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6fa9992d0..af93b7631 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,7 +5,6 @@ language: php dist: trusty php: - - 5.3 - 5.4 - 5.5 - 5.6 @@ -22,7 +21,10 @@ matrix: sudo: false install: + - ant - composer self-update + - composer require --dev phpunit/phpunit ^6.0 php-coveralls/php-coveralls ^2.1 + - composer install --dev before_script: - mysql --user=root -e "CREATE USER 'foo'@'localhost' IDENTIFIED BY 'foo';" @@ -33,8 +35,28 @@ before_script: - mv ./src/bb-config-sample.php ./src/bb-config.php script: - - ./src/bb-vendor/bin/phpunit + - ./vendor/bin/phpunit --coverage-clover ./tests/logs/clover.xml + +after_script: + - php vendor/bin/coveralls -v notifications: email: false slack: boxbilling:vsdKszFU9Pm308ye5rNSpr8n + +before_deploy: + - npm install -g grunt-cli + - npm install + - grunt + - ant release + +deploy: + provider: releases + api-key: + secure: tVzZ+3U0ndBGvoUpFqA6ikg6fDKnPgMoNqK1pvTdEp0xmrFtjMP/fuc8+awObhj89iEC+MyzfsOP57CZbHR/UjmUSHPQew+BvTwxYmTUzgUeyUrYsTEI7WJgB7tsL35aRgrpxk102tlSmlX7EonufUT0svPOAQ1p4NgZRm3GI3A= + file: ./build/distribution/BoxBilling.zip + skip_cleanup: true + on: + tags: true + all_branches: true + php: 5.6