forked from tdhopper/pythonplot.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (27 loc) · 922 Bytes
/
Makefile
File metadata and controls
40 lines (27 loc) · 922 Bytes
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
28
29
30
31
32
33
34
35
36
37
38
39
40
GIT_COMMIT=$(shell git log -1 --pretty=format:"%h")
OUTPUTDIR=web
S3_BUCKET=pythonplot.com
all: render s3_upload
clean:
rm -f Examples.*.ipynb
rm -f *.pyc
rm -f .Rhistory
travis: test render
plotly_auth:
python ./.travis/authenticate_plotly.py
test:
python -m pytest tests/
qrender:
python render.py "Examples.ipynb"
render: run_nb
python render.py "Examples.$(GIT_COMMIT).ipynb"
s3_upload:
s3cmd sync $(OUTPUTDIR)/ s3://$(S3_BUCKET) --acl-public --delete-removed --guess-mime-type --no-mime-magic --no-preserve
run_nb:
jupyter nbconvert --to notebook --execute "Examples.ipynb" --output "Examples.$(GIT_COMMIT).ipynb"
dev_environment:
conda env update -q
source activate pythonplot && pip install -q -r requirements.txt
cloudfront_invalidate:
python .travis/invalidate_cloudfront.py
.PHONY: all qrender render s3_upload run_nb travis clean cloudfront_invalidate test dev_environment plotly_auth