You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Travis is something we should be using - it automatically carries out basic checks and builds when someone pushes to the main branch of a repository. Stuart uses it for Tardis.
The basic idea is you sync Travis up with the repository, and place a .yml file (Tardis example is here) in the repository. This then gives travis information about what tests to run, and it gives a build status on things like build requests and commits I believe. A .yml example for us might look something like:
language: c
compiler:
- mpicc
script:
./configure
make python
make py_wind
I'll try and sort this out properly as soon as the CV paper is done, or sooner if it's easy.
In due course we should also get it to do the full installation, with cfitsio and gsl installs, simple thin shell tests and reading in atomic data. That way the only tests we have to do relate to the physics and running of the actual code.
The text was updated successfully, but these errors were encountered:
This is now implemented. Every time anyone pushes to the dev branch, it downloads the directory structure, compiles GSL and CFITSIO, then makes python and py_wind. It takes about 4 mins.
A build status picture like this
shows up in the README on the github site, and I get an email if any builds fail.
With a bit of clever coding we can probably get this to call functions and exit wrongly if anything messes up e.g. reading in atomic data, sanity checks on values etc. I will gradually try and incorporate more and more automatic tests into this.
Travis is something we should be using - it automatically carries out basic checks and builds when someone pushes to the main branch of a repository. Stuart uses it for Tardis.
The Getting started guide is here.
The basic idea is you sync Travis up with the repository, and place a .yml file (Tardis example is here) in the repository. This then gives travis information about what tests to run, and it gives a build status on things like build requests and commits I believe. A .yml example for us might look something like:
I'll try and sort this out properly as soon as the CV paper is done, or sooner if it's easy.
In due course we should also get it to do the full installation, with cfitsio and gsl installs, simple thin shell tests and reading in atomic data. That way the only tests we have to do relate to the physics and running of the actual code.
The text was updated successfully, but these errors were encountered: