Update wercker.yml with tox

This commit is contained in:
ssut 2015-07-06 16:54:53 +09:00
parent f2f68afeaa
commit c40e9b720b
2 changed files with 20 additions and 22 deletions

5
tox.ini Normal file
View File

@ -0,0 +1,5 @@
[tox]
envlist = py27,py34,pypy
[testenv]
deps=coveralls
commands=coverage run --source=googletrans tests.py -v

View File

@ -1,26 +1,19 @@
box: wercker/python box:
services: id: ubuntu:trusty
# - wercker/postgresql # Don't forget to add your databases as a service
# Build definition
build: build:
# The steps that will be executed on build
steps: steps:
- virtualenv: - install-packages:
name: setup virtual environment packages: python python3 pypy python-pip
- pip-install:
requirements_file: "test-requirements.txt" # Optional argument.
# A custom script step, name value is used in the UI
# and the code value contains the command that get executed
- script: - script:
name: execute setup script name: python versions
code: | code: |
echo "python version $(python --version) running" python --version
echo "python3 version $(python3 --version) running" python3 --version
echo "pip version $(pip --version) running" - pip-install:
coverage run --source=googletrans tests.py -v requirements_file: "test-requirements.txt"
COVERALLS_REPO_TOKEN=r9pnKBevvgJu7kUvP61BwFxodyKUq8vIO coveralls packages_list: "tox"
- script:
name: tests
code: |
tox
COVERALLS_REPO_TOKEN=r9pnKBevvgJu7kUvP61BwFxodyKUq8vIO coveralls