Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Caching mvn dependencies for Appveyor #320

Merged
merged 4 commits into from
Jun 5, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,13 @@ environment:

services:
- mssql2016

cache:
- C:\Users\appveyor\.m2 -> pom.xml
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it should be directory caching. By following snippet it will cache whole directory.

cache:
  directories:
    - $HOME/.m2

or

cache:
 - $HOME/.m2

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changing to $HOME didnt work.

With that update, appveryor can't find the cache, downloads all maven dependencies, and then creates a new build cache on every build.

Reverting back to original implementation


build_script:
- mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V -Pbuild41
- mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V -Pbuild42
test_script:
- mvn test -B -Pbuild41
- mvn test -B -Pbuild42
- mvn test -B -Pbuild42