Commit a292329c authored by David Trudgian's avatar David Trudgian
Browse files

Hopefully last testing fixes for now

parent ab72e4ad
......@@ -8,7 +8,11 @@ python:
- "3.4"
- "3.5"
- "3.6"
- wget -O- | sudo tee /etc/apt/sources.list.d/neurodebian.sources.list
- sudo apt-key adv --recv-keys --keyserver hkp:// 0xA5D32F012649A5A9
- sudo apt-get -qq update
- sudo apt-get install -y singularity-container
- pip install flake8 pytest pytest-cov pytest-flake8 python-coveralls
- build_scripts/
......@@ -106,7 +106,27 @@ report returned by Clair use the `--jsoon-output` option.
## Development / Testing
Tests are run using using pytest inside a docker container, via a script that will bring up a clair instance and run
clair-singularity within a correctly linked container:
Tests can are run in 3 different ways:
__Local - no access to Clair__
Runs all tests that don't depend on access to a Clair server, using the local Python.
$ build_scripts/
__Local - dockerized with Clair__
Starts a Clair service with local docker, builds clair-singularity into a docker container, with Python 3.5, and
runs tests in this docker container.
$ build_scripts/
Travis CI automated testing will test non-Clair dependent code using Python 2.7, 3.4, 3.5, 3.6.
Clair dependent code will be tested only in the 3.5 environment, by building the docker container, starting a Clair
service, and running tests in the docker container.
set -e
set -u
docker pull arminc/clair-db:2017-08-21
docker run -d --name db arminc/clair-db:2017-08-21
set -e
set -u
pytest tests/ -v -m "not needs_clair" --cov clair_singularity --cov-report term-missing
set -e
set -u
echo "Running install"
python install
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment