Directly run API tests on travis, because they get stuck when run through composer

This commit is contained in:
Alejandro Celaya 2020-09-26 11:16:35 +02:00
parent 84b291e310
commit 6163e34327
3 changed files with 2 additions and 4 deletions

View File

@ -57,6 +57,7 @@ before_script:
script:
- composer ci
- bin/test/run-api-tests.sh
- if [[ ! -z "${DOCKERFILE_CHANGED}" && "${TRAVIS_PHP_VERSION}" == "7.4" ]]; then docker build -t shlink-docker-image:temp . ; fi
after_success:

View File

@ -15,7 +15,5 @@ testsExitCode=$?
vendor/bin/mezzio-swoole stop
echo "The exist code was $testsExitCode"
# Exit this script with the same code as the tests. If tests failed, this script has to fail
exit $testsExitCode

View File

@ -116,8 +116,7 @@
],
"test:ci": [
"@test:unit:ci",
"@test:db",
"@test:api"
"@test:db"
],
"test:unit": "@php vendor/bin/phpunit --order-by=random --colors=always --coverage-php build/coverage-unit.cov --testdox",
"test:unit:ci": "@test:unit --coverage-xml=build/coverage-unit/coverage-xml --log-junit=build/coverage-unit/junit.xml",