From 2e033b1c60760bfe1b3c208c656ceb744825aa36 Mon Sep 17 00:00:00 2001 From: Jordan Date: Thu, 2 Aug 2018 14:47:44 +0100 Subject: [PATCH 1/7] Rename test/test_file.py to test/unit/test_file.py --- test/{ => unit}/test_file.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename test/{ => unit}/test_file.py (100%) diff --git a/test/test_file.py b/test/unit/test_file.py similarity index 100% rename from test/test_file.py rename to test/unit/test_file.py From 1ffcb4f3ac5c11467bd1065894d29b878ba31500 Mon Sep 17 00:00:00 2001 From: Jordan Date: Thu, 2 Aug 2018 14:48:28 +0100 Subject: [PATCH 2/7] Create test_me.py --- test/integration/test_me.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/integration/test_me.py diff --git a/test/integration/test_me.py b/test/integration/test_me.py new file mode 100644 index 0000000..0bea153 --- /dev/null +++ b/test/integration/test_me.py @@ -0,0 +1,11 @@ +from unittest import TestCase + +import hello_world +import untested + +class MyTestCase(TestCase): + def test_pass(self): + return + + def test_qwerty(self): + pass From 0c62349f3a68255d8328468950bbc1b4e8919601 Mon Sep 17 00:00:00 2001 From: Jordan Date: Thu, 2 Aug 2018 14:51:49 +0100 Subject: [PATCH 3/7] Update .travis.yml --- .travis.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 922be02..e7db673 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,15 +10,15 @@ install: jobs: include: - stage: unit tests - script: - - nosetests --with-coverage test/unit/ - after_success: - - codecov + script: + - nosetests --with-coverage test/unit/ + after_success: + - codecov - stage: integration tests - script: - - nosetests --with-coverage test/integration/ - after_success: - - codecov + script: + - nosetests --with-coverage test/integration/ + after_success: + - codecov - stage: release python: '3.6' deploy: From 4c5afca6696576ce0b8a49f91005e33656e19794 Mon Sep 17 00:00:00 2001 From: Jordan Date: Thu, 2 Aug 2018 14:54:13 +0100 Subject: [PATCH 4/7] Update .travis.yml --- .travis.yml | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index e7db673..0abbe81 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,20 +1,27 @@ language: python -python: -- '3.4' -- '3.5' -- '3.6' -install: -- pip install -r requirements.txt -- pip install -r test_requirements.txt jobs: include: - stage: unit tests + python: + - '3.4' + - '3.5' + - '3.6' + install: + - pip install -r requirements.txt + - pip install -r test_requirements.txt script: - nosetests --with-coverage test/unit/ after_success: - codecov - stage: integration tests + python: + - '3.4' + - '3.5' + - '3.6' + install: + - pip install -r requirements.txt + - pip install -r test_requirements.txt script: - nosetests --with-coverage test/integration/ after_success: From 829f5746fb6604ff1c99e3e7d44248739a3f5d72 Mon Sep 17 00:00:00 2001 From: Jordan Date: Thu, 2 Aug 2018 14:57:17 +0100 Subject: [PATCH 5/7] Update .travis.yml --- .travis.yml | 35 +++++++++++------------------------ 1 file changed, 11 insertions(+), 24 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0abbe81..d6837ae 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,31 +1,18 @@ language: python +python: + - '3.4' + - '3.5' + - '3.6' +install: + - pip install -r requirements.txt + - pip install -r test_requirements.txt +script: + - nosetests --with-coverage +after_success: + - codecov jobs: include: - - stage: unit tests - python: - - '3.4' - - '3.5' - - '3.6' - install: - - pip install -r requirements.txt - - pip install -r test_requirements.txt - script: - - nosetests --with-coverage test/unit/ - after_success: - - codecov - - stage: integration tests - python: - - '3.4' - - '3.5' - - '3.6' - install: - - pip install -r requirements.txt - - pip install -r test_requirements.txt - script: - - nosetests --with-coverage test/integration/ - after_success: - - codecov - stage: release python: '3.6' deploy: From 086eb799714c6916f7fb436f08ffbe10042056be Mon Sep 17 00:00:00 2001 From: Jordan Date: Thu, 2 Aug 2018 15:01:24 +0100 Subject: [PATCH 6/7] Update .travis.yml --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index d6837ae..0190024 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,7 +7,7 @@ install: - pip install -r requirements.txt - pip install -r test_requirements.txt script: - - nosetests --with-coverage + - nosetests --with-coverage test/* after_success: - codecov From 229de5de749dc1f83fd82844c31a74168f72aafe Mon Sep 17 00:00:00 2001 From: Jordan Date: Thu, 2 Aug 2018 15:08:28 +0100 Subject: [PATCH 7/7] Update .travis.yml --- .travis.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0190024..0faa26f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,19 +2,18 @@ language: python python: - '3.4' - '3.5' - - '3.6' install: - pip install -r requirements.txt - pip install -r test_requirements.txt script: - nosetests --with-coverage test/* -after_success: - - codecov jobs: include: - stage: release python: '3.6' + after_success: + - codecov deploy: provider: pypi server: https://test.pypi.org/legacy/ # Remove for deployment to official PyPi repo