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