From 90b2bf202c7f750703d0457ee8ca6f1d45713d14 Mon Sep 17 00:00:00 2001 From: ssut Date: Mon, 6 Jul 2015 15:16:32 +0900 Subject: [PATCH] Add test script --- test-requirements.txt | 3 +++ wercker.yml | 26 ++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 test-requirements.txt create mode 100644 wercker.yml diff --git a/test-requirements.txt b/test-requirements.txt new file mode 100644 index 0000000..34573d7 --- /dev/null +++ b/test-requirements.txt @@ -0,0 +1,3 @@ +requests==2.7.0 +future==0.14.3 +coveralls==0.5 diff --git a/wercker.yml b/wercker.yml new file mode 100644 index 0000000..3d55628 --- /dev/null +++ b/wercker.yml @@ -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 +