.travis.yml 861 Bytes
Newer Older
1
2
sudo: required
dist: trusty
David Trudgian's avatar
David Trudgian committed
3
language: python
David Trudgian's avatar
David Trudgian committed
4
5
services:
  - docker
David Trudgian's avatar
David Trudgian committed
6
7
8
python:
  - "2.7"
  - "3.4"
9
10
11
12
13
before_install:
  - wget -O- http://neuro.debian.net/lists/trusty.us-nh.full | sudo tee /etc/apt/sources.list.d/neurodebian.sources.list
  - sudo apt-key adv --recv-keys --keyserver hkp://pool.sks-keyservers.net:80 0xA5D32F012649A5A9
  - sudo apt-get -qq update
  - sudo apt-get install -y singularity-container
14
15
  - docker pull arminc/clair-db:2017-08-21
  - docker run -d --name db arminc/clair-db:2017-08-21
16
  - docker pull arminc/clair-local-scan:v2.0.0
David Trudgian's avatar
David Trudgian committed
17
18
  - docker run -p 6060:6060 --link db:postgres -d --name clair arminc/clair-local-scan:v2.0.0
  - docker ps
19
install:
20
  - pip install flake8 pytest pytest-cov pytest-flake8 python-coveralls
21
  - python setup.py install
David Trudgian's avatar
David Trudgian committed
22
23
24
25
script:
  - pytest tests/ --cov clair_singularity --cov-report term-missing
  - coveralls

26
27