Tools: Travis should check releases

Created on 20 Mar 2018  路  8Comments  路  Source: nf-core/tools

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:

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

On --release set:

  • [x] Check that the version variable is numeric-only
  • [x] Check that the docker slug has a tag which isn't latest
  • [x] 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)

All 8 comments

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.

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 ;-)

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.

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...

exactly what i was thinking :)

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

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

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

Nice job @sven1103!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

orzechoj picture orzechoj  路  3Comments

MaxUlysse picture MaxUlysse  路  6Comments

apeltzer picture apeltzer  路  5Comments

ewels picture ewels  路  5Comments

sven1103 picture sven1103  路  4Comments