Add test script

This commit is contained in:
ssut 2015-07-06 15:16:32 +09:00
parent cf89d7abd1
commit 90b2bf202c
2 changed files with 29 additions and 0 deletions

3
test-requirements.txt Normal file
View File

@ -0,0 +1,3 @@
requests==2.7.0
future==0.14.3
coveralls==0.5

26
wercker.yml Normal file
View File

@ -0,0 +1,26 @@
box: wercker/python
services:
# - wercker/postgresql # Don't forget to add your databases as a service
# Build definition
build:
# The steps that will be executed on build
steps:
- virtualenv:
name: setup virtual environment
- 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:
name: execute setup script
code: |
echo "python version $(python --version) running"
echo "python3 version $(python3 --version) running"
echo "pip version $(pip --version) running"
coverage run --source=googletrans tests.py -v
COVERALLS_REPO_TOKEN=r9pnKBevvgJu7kUvP61BwFxodyKUq8vIO coveralls