This is an automated email from the ASF dual-hosted git repository.
vishwasbabu pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/fineract.git
The following commit(s) were added to refs/heads/develop by this push:
new 484f1d9 Update Travis to run integration tests
new 26d5459 Merge pull request #528 from vishwasbabu/travis
484f1d9 is described below
commit 484f1d943024b7d962b2fdaeaf5cef158c263f04
Author: Vishwas Babu A J <[email protected]>
AuthorDate: Mon Feb 25 16:17:44 2019 -0800
Update Travis to run integration tests
---
.travis.yml | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/.travis.yml b/.travis.yml
index 5718035..c919b8d 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -20,6 +20,14 @@ language: java
jdk:
- openjdk8
+services:
+ - mysql
+
+before_install:
+ - echo "USE mysql;\nUPDATE user SET password=PASSWORD('mysql') WHERE
user='root';\nFLUSH PRIVILEGES;\n" | mysql -u root
+ - mysql -u root -pmysql -e 'CREATE DATABASE IF NOT EXISTS
`mifosplatform-tenants`;'
+ - mysql -u root -pmysql -e 'CREATE DATABASE IF NOT EXISTS
`mifostenant-default`;'
+
# https://docs.travis-ci.com/user/languages/java/#caching
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
@@ -36,3 +44,6 @@ cache:
# @see
http://forums.gradle.org/gradle/topics/whats_new_in_gradle_1_1_test_logging for
alternative
script:
- ./gradlew --info licenseMain licenseTest licenseIntegrationTest test
+ - ./gradlew migrateTenantListDB -PdbName=mifosplatform-tenants
+ - ./gradlew migrateTenantDB -PdbName=mifostenant-default
+ - ./gradlew clean integrationTest