Generate .travis.yml file from tox.ini

This commit is contained in:
Tyson Clugg 2015-12-14 11:50:19 +11:00
parent b521317c77
commit bc1a122394
2 changed files with 51 additions and 0 deletions

29
.travis.yml Normal file
View file

@ -0,0 +1,29 @@
# .travis.yml automatically generated by ".travis.yml.sh"
# Container-based builds used if "sudo: false" --> fast boot (1-6s)
# https://docs.travis-ci.com/user/ci-environment/
sudo: false
language: python
env:
- TOXENV="py27-django1.8"
- TOXENV="py27-django1.9"
- TOXENV="py33-django1.8"
- TOXENV="py34-django1.8"
- TOXENV="py34-django1.9"
- TOXENV="py35-django1.8"
- TOXENV="py35-django1.9"
- TOXENV="pypy3-django1.8"
- TOXENV="pypy3-django1.9"
- TOXENV="pypy-django1.8"
- TOXENV="pypy-django1.9"
install:
- pip install tox coveralls
script:
- tox
after_success:
coveralls

22
.travis.yml.sh Executable file
View file

@ -0,0 +1,22 @@
#!/bin/bash
cat<<EOF
# .travis.yml automatically generated by "$0"
# Container-based builds used if "sudo: false" --> fast boot (1-6s)
# https://docs.travis-ci.com/user/ci-environment/
sudo: false
language: python
env:
$( tox -l | grep '^py' | sort -n | sed -e 's/^.*$/ - TOXENV="\0"/' )
install:
- pip install tox coveralls
script:
- tox
after_success:
coveralls
EOF