From 1b6c202ddc494d472a7825948a2ae66bf940237e Mon Sep 17 00:00:00 2001 From: Michael Vorburger Date: Sat, 12 Oct 2019 01:02:08 +0200 Subject: [PATCH] Add docker-compose non-regression test to Travis CI --- .travis.yml | 2 ++ Dockerfile | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 08f30a629..3c20a6ea6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,6 +26,7 @@ jdk: services: - mysql + - docker before_install: - echo "USE mysql;\nUPDATE user SET password=PASSWORD('mysql') WHERE user='root';\nFLUSH PRIVILEGES;\n" | mysql -u root @@ -52,5 +53,6 @@ cache: 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 diff --git a/Dockerfile b/Dockerfile index b5406df8d..4a86d1e47 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,7 +23,7 @@ COPY . fineract WORKDIR fineract ARG mysqlserver=fineractmysql RUN sed -i "s/localhost/${mysqlserver}/" ./fineract-provider/src/main/resources/sql/migrations/list_db/V1__mifos-platform-shared-tenants.sql -RUN ./gradlew clean war +RUN ./gradlew clean -x test war FROM bitnami/tomcat:7.0.94 as fineract