Hi All,
I am using following travis configuration for our project. But it doesn’t cache the local .m2
directory after a successful build. Because of this, Our build exceeds the execution time limit (50min) and get failed.
language: java
sudo: true
# Can't update to xenial distribution (ubuntu 16.04) bause of the Java JDK restriction (Not supporting )
dist: trusty
# Using -q Quiet output which only show errors, to overcome TravisCI log limit issue
script: mvn clean install -Dmaven.test.skip -q -B -V | grep -v DEBUG; exit "${PIPESTATUS[0]}";
cache:
directories:
- $HOME/.m2
- /home/travis/build/wso2/carbon-apimgt/features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher-new/node_modules
- /home/travis/build/wso2/carbon-apimgt/features/apimgt/org.wso2.carbon.apimgt.store.feature/src/main/resources/store-new/node_modules
Can you please help me to figure out why the .m2 directory is not getting cached? Is there anything wrong with the above configuration which prevents caching the directories.
Thanks
~Kasun