.travis.yml 717 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
before_install:
10
11
  - docker pull arminc/clair-db:2017-08-21
  - docker run -d --name db arminc/clair-db:2017-08-21
12
  - docker pull arminc/clair-local-scan:v2.0.0
David Trudgian's avatar
David Trudgian committed
13
14
  - docker run -p 6060:6060 --link db:postgres -d --name clair arminc/clair-local-scan:v2.0.0
  - docker ps
15
install:
16
  - pip install flake8 pytest pytest-cov pytest-flake8 python-coveralls
17
  - python setup.py install
David Trudgian's avatar
David Trudgian committed
18
script:
David Trudgian's avatar
David Trudgian committed
19
20
  - docker build -t clair_singularity .
  - docker run -v $TRAVIS_BUILD_DIR:/app --privileged --name clair-singularity --link clair:clair clair_singularity pytest tests/ --cov clair-singularity --cov-report term-missing
David Trudgian's avatar
David Trudgian committed
21
22
  - coveralls

23
24