fediglam/.woodpecker.yml

38 lines
995 B
YAML
Raw Normal View History

2022-12-18 12:44:56 +00:00
clone:
git:
image: woodpeckerci/plugin-git
settings:
depth: 1
lfs: false
pipeline:
2022-12-18 13:01:55 +00:00
prepare-compiler:
2022-12-18 12:54:25 +00:00
image: alpine
2022-12-18 13:01:55 +00:00
commands:
- echo "Downloading dependencies..."
- apk add curl xz
- echo "Downloading zig binary..."
2022-12-18 12:54:25 +00:00
- curl https://ziglang.org/download/0.10.0/zig-linux-x86_64-0.10.0.tar.xz | xz -d | tar -x
2022-12-18 13:01:55 +00:00
format:
image: alpine
commands:
- echo "Checking formatting..."
2022-12-18 12:54:25 +00:00
- ./zig-linux-x86_64-0.10.0/zig fmt --check src/ tests/ build.zig
2022-12-18 12:44:56 +00:00
unit-tests:
image: alpine
commands:
2022-12-18 13:01:55 +00:00
- echo "Downloading dependencies..."
- apk add sqlite sqlite-dev libpq libpq-dev
- echo "Running unit tests..."
2022-12-18 12:44:56 +00:00
- ./zig-linux-x86_64-0.10.0/zig build unit
2022-12-18 14:21:52 +00:00
integration-tests:
image: alpine
commands:
- echo "Downloading dependencies..."
- apk add sqlite sqlite-dev libpq libpq-dev
- echo "Running integration tests..."
- ./zig-linux-x86_64-0.10.0/zig build integration-tests