/
pixi.toml
56 lines (51 loc) · 1.95 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
[project]
name = "Wflow.jl"
authors = [
"Joost Buitink <joost.buitink@deltares.nl",
"Willem van Verseveld <willem.vanVerseveld@deltares.nl",
"Hofer-Julian <julian.hofer@deltares.nl>",
]
channels = ["conda-forge"]
platforms = ["win-64", "linux-64"]
[tasks]
# Installation
install-julia = "juliaup add 1.10.0 && juliaup default 1.10.0"
# Julia
update-registry-julia = "julia --eval='using Pkg; Registry.update()'"
instantiate-julia = "julia --project --eval='using Pkg; Pkg.instantiate()'"
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",
] }
# 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=\"./\")'"
[dependencies]
juliaup = "*"
python = ">=3.10"
[activation]
scripts = ["utils/env_setup.sh"]
[target.win-64.activation]
scripts = ["utils/env_setup.bat"]
[system-requirements]
linux = "3.10.0"