-
Notifications
You must be signed in to change notification settings - Fork 44
/
Copy path.travis.yml
56 lines (48 loc) · 1.83 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
sudo: required
dist: trusty
group: deprecated-2017Q4
language: python
services:
- docker
env:
matrix:
- DOCKER_VERSION=1.7.1-0~trusty
- DOCKER_VERSION=1.9.1-0~trusty
- DOCKER_VERSION=1.10.1-0~trusty
- DOCKER_VERSION=1.11.1-0~trusty
- DOCKER_VERSION=17.03.0~ce-0~ubuntu-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 -I pip==9.0.1
- sudo -H pip install ibm_db==2.0.8a0
- sudo -H pip install codecov pytest-cov==2.3.0 pytest==2.9.2
# psvmi specific
- sudo apt-get install qemu-kvm
- git clone https://github.com/cloudviz/psvmi.git
- cd psvmi/psvmi && sudo python setup.py build && sudo python setup.py install && cd -
- cp -r psvmi/maps maps
- cp -r psvmi/offsets offsets
- cp psvmi/header.h .
# 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
- echo "fix whitespace errors with 'autopep8 --select E1 --recursive --in-place .'" && flake8 --select E1
# command to run tests
script:
- bandit -r crawler || true
- flake8 --count --max-complexity=10 --statistics crawler
- sudo -H python setup.py test --addopts '--cov=.'
after_success:
- pylint crawler
- codecov