From a06c008cc348894c2871c9021ff9ca9e3b35e59f Mon Sep 17 00:00:00 2001 From: Michael Vorburger Date: Mon, 14 Oct 2019 15:15:32 +0200 Subject: [PATCH] Stop mysql system service before docker-compose on Travis CI --- .travis.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3c20a6ea6..1da1b5aa6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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