Skip to content

Commit 336b7ce

Browse files
committed
update circle-ci
1 parent 6e82c14 commit 336b7ce

1 file changed

Lines changed: 18 additions & 7 deletions

File tree

.circleci/config.yml

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,28 @@ checkout:
1212
jobs:
1313

1414
unittests:
15-
machine:
16-
enabled: true
17-
python:
18-
version: pypy-2.2.1
15+
docker:
16+
- image: circleci/python:2.7.15-stretch
1917
steps:
2018
- checkout
19+
- run:
20+
name: install python/pip/libvirt packages
21+
command: sudo apt-get install -yq python-libvirt libvirt-dev python-dev python-pip python-virtualenv
22+
- run:
23+
name: Download pip
24+
command: curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
25+
- run:
26+
name: Install pip
27+
command: sudo python get-pip.py
28+
- run:
29+
name: Install virtualenv
30+
command: pip install --user virtualenv
2131
- run:
2232
name: install tox
23-
command: pip install tox
24-
- run: tox -e flake8
25-
- run: tox -e py27
33+
command: pip install --user tox
34+
- run: /home/circleci/.local/bin/tox -e flake8
35+
- run: /home/circleci/.local/bin/tox -e py27
36+
- run: /home/circleci/.local/bin/tox -e validate
2637

2738
workflows:
2839
version: 2

0 commit comments

Comments
 (0)