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

Fcrepo 1556 #21

Closed
wants to merge 4 commits into from
Closed

Fcrepo 1556 #21

wants to merge 4 commits into from

Conversation

robyj
Copy link

@robyj robyj commented May 28, 2015

robyj added 2 commits May 28, 2015 16:04
- ran mvn javadoc:jar and mvn javadoc:test-aggregate, fixed warning, ran until success
- added cmds to .travis.yml
- build image already in README.md

script:
- mvn javadoc:jar
- mvn javadoc:test-aggregate
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 by adding explicit options here for "script" we lose the default behavior and now no longer actually run the tests.

Copy link

Choose a reason for hiding this comment

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

I was concerned about that as well, but it looks like the default mvn build still runs. Here is the travis build from a similar commit to fcrepo-audit:
https://travis-ci.org/fcrepo4-labs/fcrepo-audit

@mikedurbin, have you tested your theory?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, in looking at the log for the build below, I don't see any evidence that it ran tests. Maybe I'm missing something.

https://travis-ci.org/fcrepo4-labs/migration-utils/builds/64485605

Copy link
Author

Choose a reason for hiding this comment

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

Ok, do I add another maven call with those 2 calls to explicitly run the tests?

Copy link
Contributor

Choose a reason for hiding this comment

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

That makes sense.

I was crawling back through old builds and comparing:

~1 month ago, looks like the tests were being run.

Copy link

Choose a reason for hiding this comment

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

I see this in the travis build posted above:
https://travis-ci.org/fcrepo4-labs/fcrepo-audit#L89
"mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V"

That must be a default command?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, it does that to "install dependencies".

http://docs.travis-ci.com/user/languages/java/

Copy link

Choose a reason for hiding this comment

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

@mikedurbin, Do you know where travis gets the "-Dmaven.javadoc.skip=true -B -V" part?

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure we can configure it... it's a step it perform for all java maven projects before it runs any of the configured scripts. If you don't configure any scripts it runs "mvn test -B", otherwise it runs whatever your scripts are. Since we liked that it ran "mvn test -B", I think adding that to our list is good. It does seem silly that we install skipping tests and javadoc then we build again for javadocs and tests, but perhaps it compartmentalizes the types of errors it might report.

Copy link
Author

Choose a reason for hiding this comment

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

I've added individual script lines to perform an install and then perform the unit tests before generating the javadoc items. Is this ok?


script:
- mvn install
- mvn test -B
Copy link

Choose a reason for hiding this comment

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

Calling mvn install and mvn test is redundant. Probably mvn install -B -V will be adequate.

https://travis-ci.org/fcrepo4-labs/migration-utils/builds/65105204

Copy link
Author

Choose a reason for hiding this comment

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

Ok, modified to use that one call mvn install -B -V

@mikedurbin
Copy link
Contributor

Squashed and merged.

@mikedurbin mikedurbin closed this Jun 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants