-
Notifications
You must be signed in to change notification settings - Fork 1
/
justfile
49 lines (36 loc) · 1.31 KB
/
justfile
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
41
42
43
44
45
46
47
48
49
# @ means: surpress printing the executed command
default:
@just --list
alias r := run-test-app
# Run test app
run-test-app:
export FLASK_DEBUG=1
export PYTHONDONTWRITEBYTECODE=1
cd tests && poetry run flask --app "test_app:create_app()" run --host=localhost --port=5000 --debug --reload
alias t := test
# Run tests
test:
poetry run pytest -p no:cacheprovider --capture=no --cov-report=term-missing --cov=flask_squeeze tests
# CONTENT := justfile_directory() + "/content"
# DEPLOY := justfile_directory() + "/deploy"
# COMMIT_TAG := `date "+%Y-%m-%dT%H:%M:%S"`
# # This list of available targets
# default:
# @just --list
# # Build local content and deploy to public github repo.
# deploy: build push
# # Build local content to public directory.
# build:
# @echo "Generating site..."
# @cd {{CONTENT}} && hugo --quiet --minify --gc --cleanDestinationDir --destination {{DEPLOY}}
# @cp {{CONTENT}}/CNAME {{DEPLOY}}
# @echo "Done"
# # Commit current version of local public directory and push to github.
# push:
# @echo "Committing and pushing to github..."
# @cd {{DEPLOY}} && git add --all .
# @cd {{DEPLOY}} && git commit -m "{{COMMIT_TAG}}"
# @cd {{DEPLOY}} && git push -u origin main
# # Run a local server (including drafts).
# server:
# @cd {{CONTENT}} && hugo server --buildDrafts