Stop mysql system service before docker-compose on Travis CI

This commit is contained in:
Michael Vorburger
2019-10-21 09:45:23 +02:00
committed by Michael Vorburger ⛑️
parent 479d6e0e81
commit a06c008cc3
+3 -2
View File
@@ -52,7 +52,8 @@ cache:
# https://jira.apache.org/jira/browse/FINERACT-732 removed that again, because it made Travis CI fail.
script:
- date
- ./gradlew --console=plain licenseMain licenseTest licenseIntegrationTest test && ./gradlew --console=plain integrationTest
- docker-compose build && docker-compose up -d && sleep 5s && http --verify no --timeout 240 --check-status get https://localhost:8443/fineract-provider/health
# using "&&" instead of x2 "-" means that integrationTest does not run if test fails, which makes sense.
# @see https://docs.travis-ci.com/user/job-lifecycle/#customizing-the-build-phase
- ./gradlew --console=plain licenseMain licenseTest licenseIntegrationTest test && ./gradlew --console=plain integrationTest
# We must stop mysql the mysql system service to avoid port 3306 conflicts (unless we run the mysql in docker-compose on another port; req. FINERACT-773)
- sudo service mysql stop && docker-compose build && docker-compose up -d && sleep 5s && http --verify no --timeout 240 --check-status get https://localhost:8443/fineract-provider/health