-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjustfile
68 lines (57 loc) · 1.93 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
######## JULIA COMMANDS ########
####################################
# every just command will export the .env variables into the environment
set dotenv-load := true
# Julia package justfile commands list
default:
@just --list --unsorted
# info for developing/testing this package
info:
@echo "Setting up Prefect Demo [Optional]:"
@echo " cd prefect/; just init"
@echo " * this intalls poetry package and gets prefect local server running"
@echo " * see docs 'Prefect Installation' section"
@echo
# pass thru command
run *args:
{{args}}
# julia --project=. --startup-file=no
repl:
julia --project=. --startup-file=no
# activate julia package and initiate test/runtests.jl in test environment
test:
-julia --project=. --startup-file=no --eval 'import Pkg; Pkg.test()'
# workflow reminders when tests are done
docs:
@echo "Building docs"
julia --startup-file=no --project=docs --color=yes docs/make.jl
open ./docs/build/index.html
# launch service from prefect/ folder
launch:
just --justfile=prefect/justfile launch
# kill service from prefect/ folder
kill:
just --justfile=prefect/justfile kill
# full cycle of launch server, test, docs, kill server
build: launch test docs kill
# dev workflow steps, a reminder
workflow:
@echo "Dev workflow:"
@echo " git checkout -b issue-3/s3-read-write"
@echo " just repl; ] instantiate; add PKGS # as neeeded"
@echo " code, write/edit tests"
@echo " 'just build' - this runs the server, tests, doctest, builds docs"
@echo " debug"
@echo " vim Project.toml -> bump version number"
@echo " git commit 'closes #3: s3 read/write'"
@echo " => pull request"
@echo " => git merge; git push"
@echo
@echo " Registrator & Tagbot on merge commit"
@echo " add comment to commit to get release as follows:"
@echo " @JuliaRegistrator register"
@echo
@echo " Release Notes:"
@echo
@echo " # Markdown Notes Here"
@echo " - blah blah"