Skip to content

Fix license check in travis and make it optional#8049

Merged
gianm merged 8 commits intoapache:masterfrom
jihoonson:fix-travis-license-check
Jul 10, 2019
Merged

Fix license check in travis and make it optional#8049
gianm merged 8 commits intoapache:masterfrom
jihoonson:fix-travis-license-check

Conversation

@jihoonson
Copy link
Copy Markdown
Contributor

Hopefully fixes the stalled travis. In this PR, I reduced the memory assigned for generating dependency reports. Also made this license check optional. Travis runs build.sh which runs two maven commands for license check and distribution build, respectively. To build distribution without license check, you can simply run mvn install -Pdist.

Comment thread build.sh Outdated

mkdir -p target

mvn clean install -q -ff -DskipTests && docs/_bin/generate-license-dependency-reports.py . target --clean-maven-artifact-transfer && docs/_bin/generate-license.py licenses/APACHE2 licenses.yaml LICENSES.BINARY --dependency-reports target/license-reports
Copy link
Copy Markdown
Contributor

@himanshug himanshug Jul 9, 2019

Choose a reason for hiding this comment

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

since we are using "-Xmx3000m" in the next command anyway that means that much memory is available in this environment. so we can give this command same memory as well (not sure how much it needs but I guess , less than 3000m)
so basically move "MAVEN_OPTS='-Xmx3000m" in a separate line before both the commands.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks. Moved it to top.

@jihoonson
Copy link
Copy Markdown
Contributor Author

This PR temporarily fixes the issue. I believe the better solution would be rewriting generate-license-dependency-reports.py script into some maven execution configuration, but it would take more time. I will try the better one later.

@gianm gianm mentioned this pull request Jul 10, 2019
@gianm gianm merged commit 0a3538b into apache:master Jul 10, 2019
@clintropolis clintropolis added Area - Dev For items related to the project itself, like dev docs and checklists, but not CI Area - Testing labels Aug 8, 2019
@clintropolis clintropolis added this to the 0.16.0 milestone Aug 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area - Dev For items related to the project itself, like dev docs and checklists, but not CI Area - Testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants