Skip to content

Commit

Permalink
.travis.yml: Move build steps into script
Browse files Browse the repository at this point in the history
Allow Netlify to execute the same build process.

Closes coala/community#36
  • Loading branch information
jayvdb committed Dec 10, 2017
1 parent 741a8b8 commit 643ae4c
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
15 changes: 15 additions & 0 deletions .ci/build.sh
Original file line number Diff line number Diff line change
@@ -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/
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,6 @@ ENV/

# mypy
.mypy_cache/

_site/
/public/
7 changes: 1 addition & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 643ae4c

Please sign in to comment.