mirror of
https://github.com/ammaraskar/pyCraft.git
synced 2024-11-25 11:46:54 +01:00
Add travis support
This commit is contained in:
parent
d3917b42a4
commit
e966237d54
16
.travis.yml
Normal file
16
.travis.yml
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
language: python
|
||||||
|
python: 2.7
|
||||||
|
env:
|
||||||
|
- TOX_ENV=py27
|
||||||
|
- TOX_ENV=py33
|
||||||
|
- TOX_ENV=py34
|
||||||
|
- TOX_ENV=pypy
|
||||||
|
- TOX_ENV=cover
|
||||||
|
- TOX_ENV=flake8
|
||||||
|
- TOX_ENV=pylint-errors
|
||||||
|
- TOX_ENV=pylint-full
|
||||||
|
- TOX_ENV=verify-manifest
|
||||||
|
install:
|
||||||
|
- pip install tox
|
||||||
|
script:
|
||||||
|
- tox -e $TOX_ENV
|
14
bin/generate_travis_yml.py
Normal file
14
bin/generate_travis_yml.py
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
import os
|
||||||
|
os.chdir("..")
|
||||||
|
|
||||||
|
from tox._config import parseconfig
|
||||||
|
|
||||||
|
print "language: python"
|
||||||
|
print "python: 2.7"
|
||||||
|
print "env:"
|
||||||
|
for env in parseconfig(None, 'tox').envlist:
|
||||||
|
print " - TOX_ENV=%s" % env
|
||||||
|
print "install:"
|
||||||
|
print " - pip install tox"
|
||||||
|
print "script:"
|
||||||
|
print " - tox -e $TOX_ENV"
|
Loading…
Reference in New Issue
Block a user