forked from cloudviz/agentless-system-crawler
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
42 lines (35 loc) · 1.27 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
sudo: required
language: python
services:
- docker
env:
matrix:
- DOCKER_VERSION=1.7.1-0~trusty
- DOCKER_VERSION=1.8.1-0~trusty
- DOCKER_VERSION=1.9.1-0~trusty
- DOCKER_VERSION=1.10.1-0~trusty
- DOCKER_VERSION=1.11.1-0~trusty
python:
- "2.7"
before_install:
- ./.validateDCO
- sudo sh -c 'echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" > /etc/apt/sources.list.d/docker.list'
- sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
- sudo apt-get update
- sudo apt-key update
- sudo apt-get -qqy --force-yes -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install docker-engine=${DOCKER_VERSION}
- docker -v
# might as well upgrade pip to support TLS and get rid of the warnings
- sudo -H pip install --upgrade pip
- sudo -H pip install codecov pytest-cov
# command to install dependencies
# XXX: Now mock complains if we don't `sudo pip install`.
install:
- sudo -H pip install --ignore-installed -r requirements-test.txt
# command to run tests
script:
- sudo -H python setup.py test --addopts '--cov=.'
after_success:
- flake8 --count --exit-zero --max-complexity=10 --statistics .
- pylint crawler
- codecov