mirror of
https://github.com/shlinkio/shlink.git
synced 2024-11-26 23:07:51 +03:00
Moved execution of API tests outside composer script
This commit is contained in:
parent
f3f3ef5c18
commit
a4eda9d761
2 changed files with 3 additions and 4 deletions
|
@ -46,7 +46,7 @@ before_script:
|
|||
- export DOCKERFILE_CHANGED=$(git diff ${TRAVIS_COMMIT_RANGE:-origin/master} --name-only | grep Dockerfile)
|
||||
|
||||
script:
|
||||
- if [[ "${DOCKER_PUBLISH}" == 'false' ]]; then composer ci ; fi
|
||||
- if [[ "${DOCKER_PUBLISH}" == 'false' ]]; then bin/test/run-api-tests.sh --coverage-php build/coverage-api.cov && composer ci ; fi
|
||||
- if [[ ! -z "${DOCKERFILE_CHANGED}" && "${TRAVIS_PHP_VERSION}" == "7.4" && "${DOCKER_PUBLISH}" == "false" ]]; then docker build -t shlink-docker-image:temp . ; fi
|
||||
- if [[ "${DOCKER_PUBLISH}" == 'true' ]]; then bash ./docker/build ; fi
|
||||
|
||||
|
|
|
@ -58,7 +58,7 @@
|
|||
"symfony/filesystem": "^5.1",
|
||||
"symfony/lock": "^5.1",
|
||||
"symfony/mercure": "^0.3.0",
|
||||
"symfony/process": "~5.0.9",
|
||||
"symfony/process": "^5.1",
|
||||
"symfony/string": "^5.1",
|
||||
"symfony/translation-contracts": "^2.1"
|
||||
},
|
||||
|
@ -112,8 +112,7 @@
|
|||
],
|
||||
"test:ci": [
|
||||
"@test:unit:ci",
|
||||
"@test:db",
|
||||
"@test:api:ci"
|
||||
"@test:db"
|
||||
],
|
||||
"test:unit": "phpdbg -qrr vendor/bin/phpunit --order-by=random --colors=always --coverage-php build/coverage-unit.cov --testdox",
|
||||
"test:unit:ci": "@test:unit --coverage-clover=build/clover.xml --coverage-xml=build/coverage-xml --log-junit=build/junit.xml",
|
||||
|
|
Loading…
Reference in a new issue