From 4cd27ef49db6b538fae697a27dc259d7364a9a9a Mon Sep 17 00:00:00 2001 From: Mark Gibbs Date: Tue, 4 Sep 2018 13:27:42 -0400 Subject: [PATCH 1/4] Added travis CI script --- .travis.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..9a4d92ba --- /dev/null +++ b/.travis.yml @@ -0,0 +1,14 @@ +# Travis CI +language: python + +python: + - "3.6" + +install: + - pip install -r requirements.txt + - pip install -r dev_requirements.txt + - python setup.py develop + +script: + - pushd demo + - pytest demo --cov=demo --cov=django_plotly_dash --cov-report term-missing \ No newline at end of file From efd5d890fe957d47f6816f4957ebdf850333c53c Mon Sep 17 00:00:00 2001 From: Mark Gibbs Date: Tue, 4 Sep 2018 13:36:35 -0400 Subject: [PATCH 2/4] Updated travis CI file --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 9a4d92ba..fabd67c6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,4 +11,4 @@ install: script: - pushd demo - - pytest demo --cov=demo --cov=django_plotly_dash --cov-report term-missing \ No newline at end of file + - pytest demo --cov=demo --cov=django_plotly_dash --cov-report term-missing From 6e07750960f8fc8f2dd696642cb3f194050ee92a Mon Sep 17 00:00:00 2001 From: Mark Gibbs Date: Tue, 4 Sep 2018 13:41:31 -0400 Subject: [PATCH 3/4] Update settings and add redis to travis --- .travis.yml | 3 +++ dev_requirements.txt | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index fabd67c6..53daad0a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,6 +9,9 @@ install: - pip install -r dev_requirements.txt - python setup.py develop +services: + - redis-server + script: - pushd demo - pytest demo --cov=demo --cov=django_plotly_dash --cov-report term-missing diff --git a/dev_requirements.txt b/dev_requirements.txt index f8f111b2..b56ac370 100644 --- a/dev_requirements.txt +++ b/dev_requirements.txt @@ -7,7 +7,7 @@ django-redis grip pandas pylint -pytest +pytest>=3.6 pytest-django pytest-cov pytz From 49b387187d0fb10ae7fa887c2d816daf2b811e9d Mon Sep 17 00:00:00 2001 From: Mark Gibbs Date: Tue, 4 Sep 2018 13:48:48 -0400 Subject: [PATCH 4/4] Add caching of pip files --- .travis.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.travis.yml b/.travis.yml index 53daad0a..20eb731c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,9 @@ language: python python: - "3.6" +cache: + - pip + install: - pip install -r requirements.txt - pip install -r dev_requirements.txt