-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathpixi.toml
58 lines (55 loc) · 2.45 KB
/
pixi.toml
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
[project]
name = "Wflow.jl"
authors = [
"Joost Buitink <joost.buitink@deltares.nl>",
"Willem van Verseveld <willem.vanVerseveld@deltares.nl>",
"Hofer-Julian <julian.hofer@deltares.nl>",
"Bart de Koning <bart.dekoning@deltares.nl>"
]
channels = ["conda-forge"]
platforms = ["win-64", "linux-64"]
[tasks]
# Installation
install-julia = "juliaup add 1.10.7 && juliaup override set 1.10.7"
# Julia
# Clear SSL_CERT_DIR to avoid Julia warnings, see /~https://github.com/JuliaLang/Downloads.jl/issues/244
update-registry-julia = { cmd = "julia --eval='using Pkg; Registry.update()'", env = { SSL_CERT_DIR = "" } }
instantiate-julia = {cmd = "julia --project --eval='using Pkg; Pkg.instantiate()'",env = { SSL_CERT_DIR = "" } }
initialize-julia = { depends-on = [
"update-registry-julia",
"instantiate-julia",
] }
# Build
instantiate-create-binaries = { cmd = "julia --project --eval='using Pkg; Pkg.instantiate()'", cwd = "build/create_binaries" }
instantiate-wflow-cli = { cmd = "julia --project --eval='using Pkg; Pkg.instantiate()'", cwd = "build/wflow_cli" }
download-test-data = { cmd = "julia --project download_test_data.jl", cwd = "build/create_binaries", depends-on = [
"initialize-julia",
"instantiate-create-binaries",
] }
build-wflow-cli = { cmd = "julia --project create_app.jl", cwd = "build/create_binaries", depends-on = [
"download-test-data",
"instantiate-wflow-cli",
], env = { SSL_CERT_DIR = "", JULIA_SSL_CA_ROOTS_PATH = "" } }
# Test
test-wflow-cli = { cmd = "julia --project --eval 'using Pkg; Pkg.test()'", cwd = "build/wflow_cli", depends-on = [
"download-test-data",
] }
test-wflow-cov = { cmd = "julia --project --eval 'using Pkg; Pkg.test(coverage=true, julia_args=[\"--check-bounds=yes\"])'", depends-on = [
"initialize-julia",
] }
# Server
test-wflow-server = { cmd = "julia --project=server --eval 'using Pkg; Pkg.test(\"WflowServer\", coverage=true)'", depends-on = [
"instantiate-wflow-server",
] }
instantiate-wflow-server = "julia --project=server --eval 'using Pkg; Pkg.instantiate(); Pkg.develop(path=\"./\")'"
# Docs
install-ci = { depends-on = ["install-julia", "update-registry-julia"] }
quarto-check = { cmd = "quarto check all" }
quarto-render = { cmd = "julia --project=docs --eval 'using Pkg; Pkg.build(\"IJulia\")' && quarto render docs --to html --execute" }
quarto-preview = { cmd = "quarto preview docs" }
[dependencies]
juliaup = "*"
python = ">=3.10"
jupyter = ">=1.1.1,<2"
[system-requirements]
linux = "3.10.0"