fediglam/.woodpecker.yml
jaina heartles d5f8f84480
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Enable integration tests in CI
2022-12-18 06:21:52 -08:00

38 lines
995 B
YAML

clone:
git:
image: woodpeckerci/plugin-git
settings:
depth: 1
lfs: false
pipeline:
prepare-compiler:
image: alpine
commands:
- echo "Downloading dependencies..."
- apk add curl xz
- echo "Downloading zig binary..."
- curl https://ziglang.org/download/0.10.0/zig-linux-x86_64-0.10.0.tar.xz | xz -d | tar -x
format:
image: alpine
commands:
- echo "Checking formatting..."
- ./zig-linux-x86_64-0.10.0/zig fmt --check src/ tests/ build.zig
unit-tests:
image: alpine
commands:
- echo "Downloading dependencies..."
- apk add sqlite sqlite-dev libpq libpq-dev
- echo "Running unit tests..."
- ./zig-linux-x86_64-0.10.0/zig build unit
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