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

Github Releases #53

Merged
merged 7 commits into from
Jan 8, 2020
Merged

Github Releases #53

merged 7 commits into from
Jan 8, 2020

Conversation

Trojan295
Copy link
Contributor

@Trojan295 Trojan295 commented Oct 19, 2019

Issue #, if available: none, somehow connected with #32

Description of changes:
This PR adds a feature to publish flowgger release packages as GitHub Releases. It publishes a zip with the flowgger binary + flowgger.toml for every target in the Travis CI build. I also did some refactoring to the Travis scripts.

Example release: https://github.com/Trojan295/flowgger/releases/tag/0.1.0
Travis CI build for this release: https://travis-ci.org/Trojan295/flowgger/builds/600116381

To make it work, some Github account with rights to publish to Github Releases must generate an API key and add to Travis CI environment variables as GITHUB_APIKEY.

I also added to test/build the flowgger binary with all features except capnp, because it requires the capnp compiler installed in the build environment. We cannot install it there, because we are using cross and would need to build custom images for every target (see cross-rs/cross#281).

I also had to modify two tests for FileOutput, because they were writing a file to a path, which is read-only in the build environment and thus failing. There are also additional modification to this file, caused by cargo fmt.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Copy link
Contributor

@crisidev crisidev left a comment

Choose a reason for hiding this comment

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

LGTM. Travis is temporarily disabled, but we will restart it as soon as this PR is merged.

@vche vche merged commit 3b3f940 into awslabs:master Jan 8, 2020
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.

3 participants