Skip to content

Commit

Permalink
Merge pull request apache#528 from vishwasbabu/travis
Browse files Browse the repository at this point in the history
Update Travis to run integration tests
  • Loading branch information
vishwasbabu authored Feb 26, 2019
2 parents 8b14bb8 + 484f1d9 commit 26d5459
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 26d5459

Please sign in to comment.