From b8c8f23f63aa98866ea3f0ae59b79fb421b1fd1d Mon Sep 17 00:00:00 2001 From: Chris Kerr Date: Sat, 22 Apr 2017 12:38:23 +0200 Subject: [PATCH 1/5] Default Python .travis.yml file from the Travis-CI docs --- .travis.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..c3e5ca2 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,17 @@ +language: python +python: + - "2.6" + - "2.7" + - "3.2" + - "3.3" + - "3.4" + - "3.5" + - "3.5-dev" # 3.5 development branch + - "3.6" + - "3.6-dev" # 3.6 development branch + - "3.7-dev" # 3.7 development branch + - "nightly" # currently points to 3.7-dev +# command to install dependencies +install: "pip install -r requirements.txt" +# command to run tests +script: pytest From e38dc0c92a478426506e1f33b54864147275cd0e Mon Sep 17 00:00:00 2001 From: Chris Kerr Date: Sat, 22 Apr 2017 12:47:05 +0200 Subject: [PATCH 2/5] Created requirements.txt --- requirements.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 requirements.txt diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..24ce15a --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +numpy From a7d93035e8ab1173f049785edec9528d0357b5f4 Mon Sep 17 00:00:00 2001 From: Chris Kerr Date: Sat, 22 Apr 2017 12:48:21 +0200 Subject: [PATCH 3/5] Use nosetests in .travis.yml --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index c3e5ca2..0f5c725 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,5 +13,6 @@ python: - "nightly" # currently points to 3.7-dev # command to install dependencies install: "pip install -r requirements.txt" +install: "pip install nose" # command to run tests -script: pytest +script: nosetests From fa264ff08e8a269207d62f194d34f3d32752fc9c Mon Sep 17 00:00:00 2001 From: Chris Kerr Date: Sat, 22 Apr 2017 12:51:01 +0200 Subject: [PATCH 4/5] Download the test data when running the tests --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 0f5c725..86b36ff 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,5 +14,6 @@ python: # command to install dependencies install: "pip install -r requirements.txt" install: "pip install nose" +install: "sh get_testdata.sh" # command to run tests script: nosetests From 5df258f125588b0fae9fc1c1ac5026dc38f35c94 Mon Sep 17 00:00:00 2001 From: Chris Kerr Date: Sat, 22 Apr 2017 12:54:07 +0200 Subject: [PATCH 5/5] Don't test on Python 2.6 as it does not have OrderedDict Fixes #6 --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 86b36ff..77bc1e5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,6 @@ language: python python: - - "2.6" +# - "2.6" # 2.6 does not have collections.OrderedDict - "2.7" - "3.2" - "3.3"