From c40e9b720b6700965c26d81226f82afad6425e5c Mon Sep 17 00:00:00 2001 From: ssut Date: Mon, 6 Jul 2015 16:54:53 +0900 Subject: [PATCH] Update wercker.yml with tox --- tox.ini | 5 +++++ wercker.yml | 37 +++++++++++++++---------------------- 2 files changed, 20 insertions(+), 22 deletions(-) create mode 100644 tox.ini diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..73a70d8 --- /dev/null +++ b/tox.ini @@ -0,0 +1,5 @@ +[tox] +envlist = py27,py34,pypy +[testenv] +deps=coveralls +commands=coverage run --source=googletrans tests.py -v diff --git a/wercker.yml b/wercker.yml index 3d55628..d9e0275 100644 --- a/wercker.yml +++ b/wercker.yml @@ -1,26 +1,19 @@ -box: wercker/python -services: - # - wercker/postgresql # Don't forget to add your databases as a service - -# Build definition +box: + id: ubuntu:trusty 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 + - install-packages: + packages: python python3 pypy python-pip - script: - name: execute setup script + name: python versions 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 - + python --version + python3 --version + - pip-install: + requirements_file: "test-requirements.txt" + packages_list: "tox" + - script: + name: tests + code: | + tox + COVERALLS_REPO_TOKEN=r9pnKBevvgJu7kUvP61BwFxodyKUq8vIO coveralls