Skip to content

Tox and gitlab-ci config tweaks

Simon Conseil requested to merge tox-ci into master

urania4 has an old version of pip (1.5.6) which does not cache wheels by default as the newest versions do. But this can be done with some configuration, so I added a config file for pip and built wheels for Numpy 1.10 and Astropy 1.0.9 (to avoid recompiling these packages for each gitlab-ci build):

❯ cat /home/gitlab-runner/.pip/pip.conf
[global]
find-links = file:///home/gitlab-runner/.cache/pip/wheelhouse

[wheel]
wheel-dir = /home/gitlab-runner/.cache/pip/wheelhouse

~ conseil@urania4
❯ tree /home/gitlab-runner/.cache/pip/wheelhouse
/home/gitlab-runner/.cache/pip/wheelhouse
├── astropy-1.0.9-cp27-none-linux_x86_64.whl
├── numpy-1.10.4-cp27-none-linux_x86_64.whl
└── numpy-1.11.0-cp27-none-linux_x86_64.whl

Other changes:

  • Move tox's workdir so that it is not destroyed between each build.
  • Specify Python's version to use for each test
  • For the install of nosetests inside the virtualenv, otherwise it is not able to use the coverage plugin

Merge request reports