From 46e963199152b64ae3be032ccd1f11a1827aac3d Mon Sep 17 00:00:00 2001 From: Rachel Knowler Date: Mon, 17 Feb 2014 14:20:45 +0100 Subject: [PATCH] Added travis build. --- .travis.yml | 8 ++++++++ build.sh | 15 +++++++++++++++ pip-requirements.txt | 5 +++++ 3 files changed, 28 insertions(+) create mode 100644 .travis.yml create mode 100755 build.sh diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..5ad9b63 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,8 @@ +language: python + +python: +- '2.7' + +install: pip install -r pip-requirements.txt + +script: ./build.sh diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..a392fb1 --- /dev/null +++ b/build.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +set -e + +function cleanup { + exit $? +} + +trap "cleanup" EXIT + +# Check PEP-8 code style and McCabe complexity +flake8 --show-pep8 --show-source ckanext + +# run tests +# nosetests --verbose diff --git a/pip-requirements.txt b/pip-requirements.txt index e69de29..c9846c5 100644 --- a/pip-requirements.txt +++ b/pip-requirements.txt @@ -0,0 +1,5 @@ +# This file lists the dependencies of this extension. +# Install with a command like: pip install -r pip-requirements.txt +boto==2.9.8 +xlrd==0.9.2 +flake8==2.1.0