Update wercker.yml with tox
This commit is contained in:
parent
f2f68afeaa
commit
c40e9b720b
5
tox.ini
Normal file
5
tox.ini
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
[tox]
|
||||||
|
envlist = py27,py34,pypy
|
||||||
|
[testenv]
|
||||||
|
deps=coveralls
|
||||||
|
commands=coverage run --source=googletrans tests.py -v
|
37
wercker.yml
37
wercker.yml
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user