From 9c490fc387354c720033d0b5845804ab4f020c12 Mon Sep 17 00:00:00 2001 From: codl Date: Mon, 27 Nov 2017 00:44:42 +0100 Subject: add .travis.yml --- .travis.yml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .travis.yml (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..72b1587 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,7 @@ +language: python +python: + - "3.6" + - "2.7" + +install: pip install . +script: python setup.py pytest -- cgit v1.2.3 From 430bebc12481c1ad44592f03ad7d8acbed370eab Mon Sep 17 00:00:00 2001 From: codl Date: Mon, 27 Nov 2017 00:47:00 +0100 Subject: add codecov --- .travis.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index 72b1587..b5af37e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,5 +3,9 @@ python: - "3.6" - "2.7" -install: pip install . -script: python setup.py pytest +install: + - pip install . + - pip install codecov +script: + - python setup.py pytest + - codecov -- cgit v1.2.3 From 3b6e3313ac44c4f18d4b034491a9a0c3a259a578 Mon Sep 17 00:00:00 2001 From: codl Date: Mon, 27 Nov 2017 16:49:38 +0100 Subject: travis: cache pip --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index b5af37e..1be5c8b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,3 +9,5 @@ install: script: - python setup.py pytest - codecov + +cache: pip -- cgit v1.2.3 From 376c1927ba46742dde9b3be7f6c4436ae81ccbab Mon Sep 17 00:00:00 2001 From: codl Date: Mon, 27 Nov 2017 16:52:13 +0100 Subject: travis: codecov should be in after_script --- .travis.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index 1be5c8b..b57f925 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,8 +6,7 @@ python: install: - pip install . - pip install codecov -script: - - python setup.py pytest - - codecov +script: python setup.py pytest +after_script: codecov cache: pip -- cgit v1.2.3 From cfc6ecc908d102e7886d37ea1f64dd7ec6e2c047 Mon Sep 17 00:00:00 2001 From: codl Date: Mon, 27 Nov 2017 16:53:59 +0100 Subject: travis: only notify when a build starts failing, not every time --- .travis.yml | 4 ++++ 1 file changed, 4 insertions(+) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index b57f925..e88fe2c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,3 +10,7 @@ script: python setup.py pytest after_script: codecov cache: pip + +notifications: + email: + on_failure: change -- cgit v1.2.3 From 95777fe58e2c61640e377f447594b9c4f4f91542 Mon Sep 17 00:00:00 2001 From: codl Date: Tue, 28 Nov 2017 06:03:13 +0100 Subject: add [test] extra so test deps can be installed before running tests --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index e88fe2c..b21a4b3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,7 +4,7 @@ python: - "2.7" install: - - pip install . + - pip install .[test] - pip install codecov script: python setup.py pytest after_script: codecov -- cgit v1.2.3 From e79987df2410ee32302abed9e486a72b2dfc9707 Mon Sep 17 00:00:00 2001 From: codl Date: Wed, 29 Nov 2017 02:42:07 +0100 Subject: Revert "travis: only notify when a build starts failing, not every time" This reverts commit cfc6ecc908d102e7886d37ea1f64dd7ec6e2c047. --- .travis.yml | 4 ---- 1 file changed, 4 deletions(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index b21a4b3..25f9236 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,7 +10,3 @@ script: python setup.py pytest after_script: codecov cache: pip - -notifications: - email: - on_failure: change -- cgit v1.2.3