Skip to content

Commit 0b11adc

Browse files
test: add end-to-end test for all backends (#4)
Co-authored-by: Bas Zalmstra <4995967+baszalmstra@users.noreply.github.com>
1 parent 186d548 commit 0b11adc

File tree

21 files changed

+1264
-12
lines changed

21 files changed

+1264
-12
lines changed

.github/workflows/CI.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ env:
1919
CICD_INTERMEDIATES_DIR: "_cicd-intermediates"
2020
XDG_CACHE_HOME: ${{ github.workspace }}/.cache
2121
PYTEST_ADDOPTS: "--color=yes"
22+
PYTHONIOENCODING: utf-8
2223

2324
jobs:
2425
test-linux-x86_64:

pixi.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ test-slow = "pytest --numprocesses=auto --durations=0 --timeout=600 tests/integr
3434
# pass the file to run as an argument to the task
3535
# you can also pass a specific test function, like this:
3636
# /path/to/test.py::test_function
37-
test-specific-test = { cmd = "pytest -k {{ test_substring }}", args = [
37+
test-specific-test = { cmd = "pytest -k '{{ test_substring }}'", args = [
3838
"test_substring",
3939
] }
4040
# Update one test channel by passing on value of `mappings.toml`
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
cmake_minimum_required(VERSION 3.20)
2+
project(simple-app)
3+
4+
# Set C++ standard
5+
set(CMAKE_CXX_STANDARD 11)
6+
set(CMAKE_CXX_STANDARD_REQUIRED ON)
7+
8+
# Create executable from main.cpp
9+
add_executable(${PROJECT_NAME} src/main.cpp)
10+
11+
# Install the executable
12+
install(TARGETS ${PROJECT_NAME}
13+
RUNTIME DESTINATION bin
14+
)

tests/data/pixi_build/minimal-backend-workspaces/pixi-build-cmake/pixi.lock

Lines changed: 175 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
[workspace]
2+
channels = [
3+
"https://prefix.dev/pixi-build-backends",
4+
"https://prefix.dev/conda-forge",
5+
]
6+
platforms = ["osx-arm64", "osx-64", "linux-64", "win-64"]
7+
preview = ["pixi-build"]
8+
9+
[dependencies]
10+
simple-app = { path = "." }
11+
12+
[tasks]
13+
start = "simple-app"
14+
15+
[package]
16+
name = "simple-app"
17+
version = "0.1.0"
18+
19+
[package.build]
20+
backend = { name = "pixi-build-cmake", version = "*" }
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#include <iostream>
2+
3+
int main() {
4+
std::cout << "Build backend works" << std::endl;
5+
return 0;
6+
}

0 commit comments

Comments
 (0)