Grails / Gradle test fails on CI not locally

Running our tests locally (OSX) with gradle testis running / excellent. On our CI machine (Ubuntu 16.04 LTS) we ran into a problem with the application context

java.lang.IllegalStateException: Could not find ApplicationContext, configure Grails correctly first
        at grails.util.Holders.getApplicationContext(Holders.java:97)

Version checking shows that they are the same on both machines

/grailsw -version
| Grails Version: 3.2.8
| Groovy Version: 2.4.7
| JVM Version: 1.8.0_131


./gradlew -version
Gradle 3.5
Build time:   2017-04-10 13:37:25 UTC
Revision:     b762622a185d59ce0cfc9cbc6ab5dd22469e18a6
Groovy:       2.4.10
Ant:          Apache Ant(TM) version 1.9.6 compiled on June 29 2015
JVM:          1.8.0_131 (Oracle Corporation 25.131-b11)
OS:           Linux 3.13.0-100-generic amd64`

Are there any other dependencies I should look at?

+6
source share

Source: https://habr.com/ru/post/1017146/


All Articles