scidash / neuronunit

A package for data-driven validation of neuron and ion channel models using SciUnit
http://neuronunit.scidash.org
38 stars 24 forks source link

Old travis/docker file. #126

Closed russelljjarvis closed 6 years ago

russelljjarvis commented 6 years ago

It would be cool if I could run my new non-core unit_test, tests using Travis-cl but by using a docker container that will go a bit further than anaconda, in enabling ipyparallel etc.

I think scidash/neuronunit used to have a good travis file (that I could use as a template), that pulled from docker-stacks, but I can't find it. I wonder if it might be in scidash/assets or something?

rgerkin commented 6 years ago

Take a look here. The left side is what the Travis file looked like when we were relying on Docker, so you can use something like that as a template.

I propose that you create a new branch that contains a travis file like this, and then whenever you want to run deep tests, you can pull changes from the other branches into it and that will trigger it to run. But otherwise when we are working on those other branches it won't run and so we won't have to worry about it.

russelljjarvis commented 6 years ago

AOK. The link to the diffing was broken (it's probably only visible from your login to GH) but I think I found a helpful enough version by splitting the link in half, which reveals the commit where the development switched from docker->anaconda.

https://github.com/scidash/neuronunit/commit/ac265370fe672ab7105f5dad1bc2cf6d62a31c06?diff=split72ab7105f5dad1bc2cf6d62a31c06?diff=split

This is a good idea:

'I propose that you create a new branch that contains a travis file like this, and then whenever you want to run deep tests, you can pull changes from the other branches into it and that will trigger it to run. But otherwise when we are working on those other branches it won't run and so we won't have to worry about it.'

I think I will call it test_branch.

rgerkin commented 6 years ago

See also scidash/docker-stacks#24 for another idea. Basically, you create a Docker container with all the stuff you need, and when it is built, you push it to Docker Hub/Cloud, and Travis tests it with a simple script.