diff --git a/.travis.yml b/.travis.yml index c919b8da476..60ad81c5bfc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,10 +23,14 @@ jdk: services: - mysql +# Hardcoding system time as a temporary fix for running buggy test cases 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`;' + - export TZ=Asia/Kolkata + - sudo service ntp stop + - sudo date --set="23 February 2019 01:02:03" # https://docs.travis-ci.com/user/languages/java/#caching before_cache: @@ -43,6 +47,7 @@ cache: # @see http://mrhaki.blogspot.ch/2013/05/gradle-goodness-show-more-information.html # @see http://forums.gradle.org/gradle/topics/whats_new_in_gradle_1_1_test_logging for alternative script: + - date - ./gradlew --info licenseMain licenseTest licenseIntegrationTest test - ./gradlew migrateTenantListDB -PdbName=mifosplatform-tenants - ./gradlew migrateTenantDB -PdbName=mifostenant-default