Moved execution of API tests outside composer script

This commit is contained in:
Alejandro Celaya
2020-06-08 22:38:51 +02:00
parent f3f3ef5c18
commit a4eda9d761
2 changed files with 3 additions and 4 deletions

View File

@@ -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