Add docker-compose non-regression test to Travis CI
This commit is contained in:
committed by
Michael Vorburger ⛑️
parent
5715caf2fc
commit
1b6c202ddc
@@ -26,6 +26,7 @@ jdk:
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
- mysql
|
- mysql
|
||||||
|
- docker
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- echo "USE mysql;\nUPDATE user SET password=PASSWORD('mysql') WHERE user='root';\nFLUSH PRIVILEGES;\n" | mysql -u root
|
- echo "USE mysql;\nUPDATE user SET password=PASSWORD('mysql') WHERE user='root';\nFLUSH PRIVILEGES;\n" | mysql -u root
|
||||||
@@ -52,5 +53,6 @@ cache:
|
|||||||
script:
|
script:
|
||||||
- date
|
- date
|
||||||
- ./gradlew --console=plain licenseMain licenseTest licenseIntegrationTest test && ./gradlew --console=plain integrationTest
|
- ./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.
|
# 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
|
# @see https://docs.travis-ci.com/user/job-lifecycle/#customizing-the-build-phase
|
||||||
|
|||||||
+1
-1
@@ -23,7 +23,7 @@ COPY . fineract
|
|||||||
WORKDIR fineract
|
WORKDIR fineract
|
||||||
ARG mysqlserver=fineractmysql
|
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 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
|
FROM bitnami/tomcat:7.0.94 as fineract
|
||||||
|
|||||||
Reference in New Issue
Block a user