-
Notifications
You must be signed in to change notification settings - Fork 41
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
Git all archive implementation #774
Conversation
Fix a grammar woops in index.md
🎉 HELICS-Examples integration test passed: [build log] [commit] |
🎉 helics-ns3 integration test passed: [build log] [commit] |
🎉 HELICS-Examples integration test passed: [build log] [commit] |
🎉 helics-ns3 integration test passed: [build log] [commit] |
The code itself looks good, and as far as I can tell the output looks good. Second I am wondering if some cleanup might be useful, such that once the zip file is constructed the intermediate files are deleted, maybe as an additional option of some kind. |
@nightlark what do you think? |
If you want to not have a Python dependency for this, there's a few command line tools ([1, 2, 3]) with no dependencies that exist for this very purpose: uploading files to a github tags. [1] https://github.com/tfausak/github-release/releases/tag/1.2.4 ^ I wrote this one ([3]), and it is used to upload binaries of itself to github releases from Travis. It's a pre-compiled command line tool executable with no dependencies so it should work everywhere. I can also address issues if you want to use that instead :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice to be able to create an archive without needing to install pygithub to run the script -- maybe the git archive creation and GitHub Release uploading can be done in separate scripts.
Most of the CI services also seem to provide tasks to deploy to GitHub Releases -- if those have the functionality needed, maybe we can skip installing dependencies/binaries for the deploy step. https://docs.travis-ci.com/user/deployment/releases/ |
🎉 HELICS-Examples integration test passed: [build log] [commit] |
🎉 helics-ns3 integration test passed: [build log] [commit] |
🎉 helics-ns3 integration test passed: [build log] [commit] |
🎉 HELICS-Examples integration test passed: [build log] [commit] |
🎉 helics-ns3 integration test passed: [build log] [commit] |
🎉 HELICS-Examples integration test passed: [build log] [commit] |
🎉 helics-ns3 integration test passed: [build log] [commit] |
I did not have time to test the archive file. I used a TMPDIR now and I cleaned all the tar file. |
🎉 HELICS-Examples integration test passed: [build log] [commit] |
🎉 helics-ns3 integration test passed: [build log] [commit] |
🎉 HELICS-Examples integration test passed: [build log] [commit] |
🎉 helics-ns3 integration test passed: [build log] [commit] |
🎉 HELICS-Examples integration test passed: [build log] [commit] |
🎉 helics-ns3 integration test passed: [build log] [commit] |
🎉 HELICS-Examples integration test passed: [build log] [commit] |
@@ -0,0 +1,19 @@ | |||
FROM ubuntu:18.04 as builder |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably store these somewhere more organized since I expect we will end up with a few of them them but I am not sure what is best yet so this is fine for now
Summary
add git-all-archive.py to create a tarball with archive source and all submodules source file
Proposed changes
python scripts/git-all-archive.py will archive current repository and create a tarball with the branch name. HELIC-.tar.gz