forked from wd15/pfhub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
27 lines (27 loc) · 1.32 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
---
language: nix
script:
- nix-shell --run "pylint _data/*.py"
- nix-shell --run "flake8 _data/*.py"
- nix-shell --run "make simulations"
- nix-shell --run 'find . -name "*.ipynb" -type f -not -path "*/.ipynb_checkpoints/*" -exec touch {} \;'
- nix-shell --run "make notebooks"
- nix-shell --run "touch _data/hexbin.yaml"
- nix-shell --run "make hexbin"
- nix-shell --run "rm -rf ./_site"
- nix-shell --run "jekyll build -d ./_site/pfhub && htmlproofer --check-html --only-4xx --allow-hash-href --empty-alt-ignore --checks-to-ignore ImageCheck --file-ignore ./_site/pfhub/node_modules ./_site"
- nix-shell --run "py.test --ignore=hackathons/hackathon1 --ignore=benchmarks --ignore=_data --nbval --sanitize-with sanitize.cfg"
- nix-shell --run "coffeelint _includes/coffee/"
- nix-shell --run "mocha _site/pfhub/js/test.js"
after_success:
- nix-shell --run "rm -rf ./_site"
- nix-shell --run "make simulations"
- nix-shell --run "make notebooks"
- nix-shell --run "make hexbin"
- nix-shell --run "jekyll build --baseurl ''"
- export DOMAIN=random-cat-${TRAVIS_PULL_REQUEST}.surge.sh
- export SURGE_LOGIN="[email protected]"
- export SURGE_TOKEN="3712d1678fabe65dfad576545befce2f"
- if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then
nix-shell --run "surge --project _site --domain ${DOMAIN}";
fi