From 8aedb221bb314c4188f430af726bbea48b1a108a Mon Sep 17 00:00:00 2001 From: Paul Morgan Date: Thu, 10 Apr 2014 17:02:12 +0000 Subject: [PATCH] use wercker instead of travis-ci to enable full test harness Before this commit: We use travis-ci (ubuntu vm) to run just the unit tests. We cannot run functional tests on travis-ci due to lack of platform support. After this commit: Run the full dockerized test harness on http://wercker.com to run `hacking/runtests.sh`, which runs all the unit and functional tests on el5, el6, and f20 to assert supportability on all the pythons 2.4 through 3.x. Sample test runs are at: https://app.wercker.com/#buildstep/5346d0054daac943370042c7 https://app.wercker.com/#buildstep/5346d9914daac94337005096 At the above link... 1. Click **run the docker test suite** in browser to show log 2. Scroll all the way through to see the verbose output and summary at bottom. Note: `hacking/runtests.sh` exits non-zero if any test fails on any of the platforms. Wercker docs are online at http://devcenter.wercker.com/# --- .travis-install-kludge.sh | 8 -------- .travis.yml | 12 ------------ wercker.yml | 9 +++++++++ 3 files changed, 9 insertions(+), 20 deletions(-) delete mode 100755 .travis-install-kludge.sh delete mode 100644 .travis.yml create mode 100644 wercker.yml diff --git a/.travis-install-kludge.sh b/.travis-install-kludge.sh deleted file mode 100755 index 1ab3ed3..0000000 --- a/.travis-install-kludge.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash - -# GitPython does not currently support python3 and -# may be replaced by pygit2. -# https://fedoraproject.org/wiki/User:Churchyard/python3 -if [[ $(python --version 2>&1) =~ ^2 ]]; then - pip install 'GitPython >= 0.2.0' --use-mirrors --pre -fi diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 69f0204..0000000 --- a/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -# http://docs.travis-ci.com/user/languages/python/ -language: python -python: - - "2.6" - - "2.7" - - "3.3" - -install: - - ./.travis-install-kludge.sh - - pip install 'pep8' --use-mirrors - -script: nosetests test/unit diff --git a/wercker.yml b/wercker.yml new file mode 100644 index 0000000..5d86c56 --- /dev/null +++ b/wercker.yml @@ -0,0 +1,9 @@ +box: wercker-labs/docker +build: + steps: + - script: + name: print the docker version + code: docker version + - script: + name: run the docker test suite + code: hacking/runtests.sh