From ca4b93e13c08429bf9a14505032be9aead9d2bc4 Mon Sep 17 00:00:00 2001 From: Francesco Danti Date: Fri, 12 Jul 2019 14:49:16 +0300 Subject: [PATCH 1/9] drop versions below PHP 7.2 i think this must be done --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index a189809..c3a68c0 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,7 @@ } ], "require": { - "php": ">=5.6.0", + "php": ">=7.2.0", "atk4/data": "dev-develop", "zendframework/zend-diactoros": "^1.6" }, From 4dad354005776f2e8091a17e0b07a2c5b728f02b Mon Sep 17 00:00:00 2001 From: Francesco Danti Date: Mon, 15 Jul 2019 12:53:34 +0300 Subject: [PATCH 2/9] Drop Travis tests for PHP version lower than 7.2 --- .travis.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index b8f2891..a68605c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,6 @@ language: php php: - - '5.6' - - '7.0' - - '7.1' - '7.2' cache: From 7fdc3ce21dfdf7e668e4b54578d87db5e5ea9ccf Mon Sep 17 00:00:00 2001 From: Francesco Danti Date: Mon, 15 Jul 2019 12:56:26 +0300 Subject: [PATCH 3/9] fix travis : after & before _script --- .travis.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index a68605c..3d894d1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,10 +16,8 @@ before_script: after_script: - echo $TRAVIS_PHP_VERSION - - if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.0" ]]; then echo "Sending codecov report"; bash <(curl -s https://codecov.io/bash); fi script: - - if [[ ${TRAVIS_PHP_VERSION:0:3} != "7.0" ]]; then NC="--no-coverage"; fi - ./vendor/phpunit/phpunit/phpunit $NC notifications: From 5218f5049d7420e091ddb63d382b9ec67b43b402 Mon Sep 17 00:00:00 2001 From: Francesco Danti Date: Mon, 15 Jul 2019 13:06:12 +0300 Subject: [PATCH 4/9] Add Travis test PHP version 7.3 --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 3d894d1..04ceb71 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,7 @@ language: php php: - '7.2' + - '7.3' cache: directories: From 3bea5be4d7c18b8ebb7cd82c9c210208444e6351 Mon Sep 17 00:00:00 2001 From: Francesco Danti Date: Tue, 23 Jul 2019 04:32:15 +0300 Subject: [PATCH 5/9] ops... set back coverage --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index 04ceb71..424656c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,8 +17,10 @@ before_script: after_script: - echo $TRAVIS_PHP_VERSION + - if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.2" ]]; then echo "Sending codecov report"; bash <(curl -s https://codecov.io/bash); fi script: + - if [[ ${TRAVIS_PHP_VERSION:0:3} != "7.2" ]]; then NC="--no-coverage"; fi - ./vendor/phpunit/phpunit/phpunit $NC notifications: From 4b323699fd4a568f9af484908f5dd43bd259c144 Mon Sep 17 00:00:00 2001 From: Francesco Danti Date: Tue, 23 Jul 2019 05:08:10 +0300 Subject: [PATCH 6/9] travis EOF /dev/fd/63: eval: line 1257: unexpected EOF while looking for matching `]' /dev/fd/63: eval: line 1258: syntax error: unexpected end of file --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 424656c..00189ab 100644 --- a/.travis.yml +++ b/.travis.yml @@ -43,3 +43,4 @@ notifications: on_start: never # options: [always|never|change] default: always email: false + From 47b0ce0ae478be3ea37dc7dd292974d0bbb0c064 Mon Sep 17 00:00:00 2001 From: abbadon1334 Date: Tue, 23 Jul 2019 05:43:54 +0300 Subject: [PATCH 7/9] Try to fix - Travis --- .travis.yml | 35 ++++++++++++++--------------------- 1 file changed, 14 insertions(+), 21 deletions(-) diff --git a/.travis.yml b/.travis.yml index b8f2891..0c61725 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,8 @@ language: php php: - - '5.6' - - '7.0' - - '7.1' - - '7.2' + - '7.2' + - '7.3' cache: directories: @@ -14,34 +12,29 @@ cache: # - mysql before_script: - - composer install + - composer install # - mysql -e 'create database dsql_test;' after_script: - - echo $TRAVIS_PHP_VERSION - - if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.0" ]]; then echo "Sending codecov report"; bash <(curl -s https://codecov.io/bash); fi + - echo $TRAVIS_PHP_VERSION + - if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.2" ]]; then echo "Sending codecov report"; bash <(curl -s https://codecov.io/bash); fi script: - - if [[ ${TRAVIS_PHP_VERSION:0:3} != "7.0" ]]; then NC="--no-coverage"; fi - - ./vendor/phpunit/phpunit/phpunit $NC + - if [[ ${TRAVIS_PHP_VERSION:0:3} != "7.2" ]]; then NC="--no-coverage"; fi + - ./vendor/phpunit/phpunit/phpunit $NC notifications: + webhooks: urls: - https://webhooks.gitter.im/e/b33a2db0c636f34bafa9 - on_success: change # options: [always|never|change] default: always - on_failure: always # options: [always|never|change] default: always - on_start: never # options: [always|never|change] default: always - - slack: - rooms: - - agiletoolkit:bjrKuPBf1h4cYiNxPBQ1kF6c#dsql - on_success: change - - urls: - https://webhooks.gitter.im/e/c4000ab24556b09cb3e7 - on_success: change # options: [always|never|change] default: always on_failure: always # options: [always|never|change] default: always on_start: never # options: [always|never|change] default: always - email: false + slack: + rooms: + - agiletoolkit:bjrKuPBf1h4cYiNxPBQ1kF6c#dsql + on_success: change + + email: false From 3b662bf27580cc64e4b736cbd0e93633416cad34 Mon Sep 17 00:00:00 2001 From: abbadon1334 Date: Tue, 23 Jul 2019 05:58:20 +0300 Subject: [PATCH 8/9] copy before and after script from atk4/ui --- .travis.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0c61725..b3a4b13 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,9 +15,11 @@ before_script: - composer install # - mysql -e 'create database dsql_test;' + after_script: - - echo $TRAVIS_PHP_VERSION - - if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.2" ]]; then echo "Sending codecov report"; bash <(curl -s https://codecov.io/bash); fi + - echo $TRAVIS_BRANCH + - if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.2" ]]; then echo "Sending coverage report"; vendor/bin/test-reporter --coverage-report clover.xml; fi + - if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.2" ]]; then echo "Sending codecov report"; TRAVIS_CMD="" bash <(curl -s https://codecov.io/bash) -f clover.xml; fi script: - if [[ ${TRAVIS_PHP_VERSION:0:3} != "7.2" ]]; then NC="--no-coverage"; fi From 30d6b45729b2fe63e6db34a6c7ad542b5c97aea1 Mon Sep 17 00:00:00 2001 From: abbadon1334 Date: Tue, 23 Jul 2019 06:04:46 +0300 Subject: [PATCH 9/9] fix2 travis coverage --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index b3a4b13..100c353 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,8 +18,8 @@ before_script: after_script: - echo $TRAVIS_BRANCH - - if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.2" ]]; then echo "Sending coverage report"; vendor/bin/test-reporter --coverage-report clover.xml; fi - - if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.2" ]]; then echo "Sending codecov report"; TRAVIS_CMD="" bash <(curl -s https://codecov.io/bash) -f clover.xml; fi + - if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.2" ]]; then echo "Sending coverage report"; vendor/bin/test-reporter --coverage-report build/logs/clover.xml; fi + - if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.2" ]]; then echo "Sending codecov report"; TRAVIS_CMD="" bash <(curl -s https://codecov.io/bash) -f build/logs/clover.xml; fi script: - if [[ ${TRAVIS_PHP_VERSION:0:3} != "7.2" ]]; then NC="--no-coverage"; fi