Revert "Fix failing tests if token is not set"

This reverts commit 6135d25146.
This commit is contained in:
brantje 2017-01-06 13:12:42 +01:00
parent 6135d25146
commit dffc508cc8
No known key found for this signature in database
GPG key ID: 5FF1D117F918687F
2 changed files with 3 additions and 5 deletions

View file

@ -12,7 +12,7 @@ imports:
tools:
external_code_coverage: true
external_code_coverage:
timeout: 600 # Timeout in seconds: 10 min
timeout: 7200 # Timeout in seconds: 2 hours
php_mess_detector: true
php_code_sniffer: true
sensiolabs_security_checker: true

View file

@ -66,10 +66,8 @@ script:
# Create coverage report
- sh -c "if [ -z "${CODACY_PROJECT_TOKEN+xxx}" ]; then echo 'Codacy token is not set'; fi"
- sh -c "if [ -z "${CODACY_PROJECT_TOKEN}" -a '$JSTESTS' != '1' -a '$CODECHECK' = '1' ]; then php vendor/bin/codacycoverage -v clover coverage.clover; fi"
- sh -c "if [ -z "${SCRUTINIZER_TOKEN+xxx}" ]; then echo 'Scrutinizer token is not set'; fi"
- sh -c "if [ -z "${SCRUTINIZER_TOKEN}" -a '$JSTESTS' != '1' -a '$CODECHECK' = '1' ]; then php ocular.phar code-coverage:upload --access-token="$SCRUTINIZER_TOKEN" --format=php-clover coverage.clover; fi"
- sh -c "if [ '$JSTESTS' != '1' -a '$CODECHECK' = '1' ]; then php vendor/bin/codacycoverage -v clover coverage.clover; fi"
- sh -c "if [ '$JSTESTS' != '1' -a '$CODECHECK' = '1' ]; then php ocular.phar code-coverage:upload --access-token="$SCRUTINIZER_TOKEN" --format=php-clover coverage.clover; fi"
- sh -c "if [ '$JSTESTS' = '1' ]; then grunt jshint; fi"