From 643ae4cacb970f2ccf867901c0e6f4632046a438 Mon Sep 17 00:00:00 2001 From: John Vandenberg Date: Sun, 10 Dec 2017 12:17:23 +0700 Subject: [PATCH] .travis.yml: Move build steps into script Allow Netlify to execute the same build process. Closes https://github.com/coala/community/issues/36 --- .ci/build.sh | 15 +++++++++++++++ .gitignore | 3 +++ .travis.yml | 7 +------ 3 files changed, 19 insertions(+), 6 deletions(-) create mode 100755 .ci/build.sh diff --git a/.ci/build.sh b/.ci/build.sh new file mode 100755 index 0000000..8f508d7 --- /dev/null +++ b/.ci/build.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +set -e -x + +bash orgname.sh + +mkdir _site public + +python activity/scraper.py + +python manage.py collectstatic --noinput +python manage.py distill-local public --force + +mkdir public/activity +cp activity/index.html public/activity/ diff --git a/.gitignore b/.gitignore index 7bbc71c..fa52b5a 100644 --- a/.gitignore +++ b/.gitignore @@ -99,3 +99,6 @@ ENV/ # mypy .mypy_cache/ + +_site/ +/public/ diff --git a/.travis.yml b/.travis.yml index 143baa2..c684e49 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,12 +13,7 @@ before_script: script: - coala --non-interactive -V + - ./.ci/build.sh after_success: - - mkdir _site public - - python activity/scraper.py - - python manage.py collectstatic --noinput - - python manage.py distill-local public --force - - mkdir public/activity - - cp activity/index.html public/activity/ - ./.ci/deploy.sh