-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpixi.toml
63 lines (51 loc) · 1.33 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
59
60
61
62
63
[project]
authors = [
"Albert Steppi <[email protected]>",
"Irwin Zaid <[email protected]>",
]
channels = ["conda-forge"]
description = "Special function implementations."
name = "xsf"
platforms = ["win-64", "linux-64", "osx-64", "osx-arm64"]
## Build
[feature.build.dependencies]
cmake = ">=3.30.5,<4"
cxx-compiler = ">=1.8.0,<2"
make = ">=4.4.1,<5"
[feature.build.tasks.configure]
cmd = [
"cmake",
# The source is in the root directory
"-S .",
# We want to build in the build directory
"-B build",
]
[feature.build.tasks.build]
cmd = ["cmake", "--build", "build"]
## Tests
[feature.tests.tasks.tests]
depends-on = ["configure", "build"]
cwd = "build"
cmd = "ctest"
## Coverage
[feature.coverage.dependencies]
lcov = ">=1.16,<2"
[feature.coverage.tasks.configure-coverage]
cmd = [
"cmake",
"-DCMAKE_BUILD_TYPE=Coverage",
# The source is in the root directory
"-S .",
# We want to build in the build directory
"-B build",
]
[feature.coverage.tasks.coverage]
depends-on = ["configure-coverage"]
cmd = ["cmake", "--build", "build", "--target", "coverage_html"]
[feature.coverage.tasks.tests-coverage]
# Generate the coverage report and then run tests under the same configuration
depends-on = ["coverage"]
cwd = "build"
cmd = "ctest"
[environments]
dev = ["build", "tests", "coverage"]