forked from ucbds-infra/otter-grader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (34 loc) · 1.01 KB
/
Makefile
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
distro:
rm dist/*
python3 update_versions.py
python3 setup.py sdist bdist_wheel
pypi:
rm dist/*
python3 update_versions.py
python3 setup.py sdist bdist_wheel
python3 -m twine upload dist/*
test-pypi:
rm dist/*
python3 update_versions.py
python3 setup.py sdist bdist_wheel
python3 -m twine upload dist/* --repository-url https://test.pypi.org/legacy/
docker-image:
docker build ./docker -t ucbdsinfra/otter-grader
docker push ucbdsinfra/otter-grader
docker-test:
cp -r ./docker test-docker
cp -r ./otter test-docker
cp setup.py test-docker
cp README.md test-docker
cp -r ./bin test-docker
printf "\nADD . /home/otter-grader\nRUN pip3 install /home/otter-grader" >> ./test-docker/Dockerfile
docker build ./test-docker -t otter-test
rm -rf ./test-docker
documentation:
sphinx-apidoc -fo docs otter
sphinx-build -b html docs docs/_build -aEv
tutorial-zip:
# rm docs/tutorial/tutorial.zip
cd docs/tutorial; \
zip -r tutorial.zip hidden-tests tests demo-* meta.json -x "*.DS_Store"; \
cp tutorial.zip ../_static