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

Travis should check releases #23

Closed
5 of 6 tasks
ewels opened this issue Mar 20, 2018 · 8 comments
Closed
5 of 6 tasks

Travis should check releases #23

ewels opened this issue Mar 20, 2018 · 8 comments

Comments

@ewels
Copy link
Member

ewels commented Mar 20, 2018

Travis builds on pushes, PRs and also tags (which for us are the same as releases). It would be great if there could be a set of tests which are specific to releases.

Suggestions:

  • Introduce --release flag for nf-core lint
  • Conditionally execute lint tests with --release flag, when git activity happens on the master branch (check env var TRAVIS_BRANCH)

On --release set:

  • Check that the version variable is numeric-only
  • Check that the docker slug has a tag which isn't latest
  • Check that the tag name (release number) is the same as the config version and container label.

Bonus points for challenging ones:

  • Check that fixed bioconda package versions are the latest available (warn if not)
@ewels
Copy link
Member Author

ewels commented Mar 20, 2018

If we always develop in a develop branch, these tests could instead just run whenever a push goes to the master branch. Then we have a chance to catch failures before we push the release.

@apeltzer
Copy link
Member

I'd be even happier with that kind of best practices: Branches are good to keep things like the master branch stable. Just imagine we'd have merged my commits this morning without further testing ;-)

@sven1103
Copy link
Member

sven1103 commented Mar 20, 2018

What do you have in mind? A --release flag for lint, that additionally checks the points above? We could then use the TRAVIS_BRANCH env var in order to differentiate between master and develop.

@ewels
Copy link
Member Author

ewels commented Mar 20, 2018

I was just thinking of getting Python to look for the env var or the git branch name. But a --release command line flag is even better as then it's easy to soft-test it before pushing. Then we can just have a conditional test that runs with this flag if it's on master...

@sven1103
Copy link
Member

exactly what i was thinking :)

@sven1103
Copy link
Member

I just updated your first comment @ewels, hope that's ok :)

@sven1103
Copy link
Member

sven1103 commented Mar 21, 2018

Opened an issue, so we modify the travis.yml accordingly in the template: nf-core/cookiecutter#16

@ewels
Copy link
Member Author

ewels commented Mar 23, 2018

I think move the bioconda thing into a separate issue, then this is done 👍

Nice job @sven1103!

@ewels ewels closed this as completed Mar 23, 2018
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

No branches or pull requests

3 participants