Skip to content
This repository was archived by the owner on Nov 19, 2018. It is now read-only.

Commit a5c1f8b

Browse files
authored
Merge pull request #42 from pydot/feature/update-travis-config
Update Travis CI config
2 parents 4ab4b6a + 4ed0dac commit a5c1f8b

File tree

2 files changed

+44
-23
lines changed

2 files changed

+44
-23
lines changed

.travis.yml

Lines changed: 34 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,36 @@
1+
if: tag IS present OR type = pull_request OR (branch = master AND type = push) # we only CI the master, tags and PRs
12
language: python
2-
before_install:
3-
- sudo apt-get update -qq
4-
- sudo apt-get install -y graphviz
3+
4+
sudo: false
5+
6+
addons:
7+
apt:
8+
packages:
9+
- graphviz
10+
11+
512
install:
6-
- pip install tox
7-
script:
8-
- tox
9-
env:
10-
- TOXENV=py26
11-
- TOXENV=py27
12-
- TOXENV=py33
13-
- TOXENV=py34
14-
- TOXENV=pep8
13+
pip install tox
14+
15+
script: tox
16+
17+
matrix:
18+
include:
19+
- env: TOXENV=py27
20+
python: 2.7
21+
- env: TOXENV=py34
22+
python: 3.4
23+
- env: TOXENV=py35
24+
python: 3.5
25+
- env: TOXENV=py36
26+
python: 3.6
27+
- env: TOXENV=py37
28+
python: 3.7
29+
dist: xenial
30+
sudo: true
31+
- env: TOXENV=py38
32+
python: 3.8-dev
33+
dist: xenial
34+
sudo: true
35+
- env: TOXENV=py36-lint
36+
python: 3.6

tox.ini

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
11
[tox]
2-
envlist = py26, py27, py33, py34
2+
envlist = py27, py36, py37, lint
3+
34

45
[testenv]
5-
usedevelop = True
6-
setenv = VIRTUAL_ENV={envdir}
76
deps = -r{toxinidir}/test-requirements.txt
8-
commands =
9-
py.test -v {posargs:test/}
7+
commands = py.test -v {posargs:test/}
8+
109

11-
[testenv:pep8]
12-
deps = hacking==0.10.1
13-
usedevelop = False
10+
[testenv:lint]
11+
deps =
12+
flake8==3.5.0
13+
skip_install = True
1414
commands = flake8
1515

16+
1617
[flake8]
17-
exclude = .venv,.tox,dist,doc,*.egg,build
1818
show-source = true
19-
# H105 - author tags in files
20-
ignore = H105
19+
max-line-length = 99

0 commit comments

Comments
 (0)