mirror of
https://github.com/shlinkio/shlink.git
synced 2025-02-25 18:45:27 -06:00
Directly run API tests on travis, because they get stuck when run through composer
This commit is contained in:
parent
84b291e310
commit
6163e34327
@ -57,6 +57,7 @@ before_script:
|
|||||||
|
|
||||||
script:
|
script:
|
||||||
- composer ci
|
- 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
|
- if [[ ! -z "${DOCKERFILE_CHANGED}" && "${TRAVIS_PHP_VERSION}" == "7.4" ]]; then docker build -t shlink-docker-image:temp . ; fi
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
|
@ -15,7 +15,5 @@ testsExitCode=$?
|
|||||||
|
|
||||||
vendor/bin/mezzio-swoole stop
|
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 this script with the same code as the tests. If tests failed, this script has to fail
|
||||||
exit $testsExitCode
|
exit $testsExitCode
|
||||||
|
@ -116,8 +116,7 @@
|
|||||||
],
|
],
|
||||||
"test:ci": [
|
"test:ci": [
|
||||||
"@test:unit:ci",
|
"@test:unit:ci",
|
||||||
"@test:db",
|
"@test:db"
|
||||||
"@test:api"
|
|
||||||
],
|
],
|
||||||
"test:unit": "@php vendor/bin/phpunit --order-by=random --colors=always --coverage-php build/coverage-unit.cov --testdox",
|
"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",
|
"test:unit:ci": "@test:unit --coverage-xml=build/coverage-unit/coverage-xml --log-junit=build/coverage-unit/junit.xml",
|
||||||
|
Loading…
Reference in New Issue
Block a user