This commit is contained in:
parent
6900c77a32
commit
0930eee561
1 changed files with 13 additions and 3 deletions
|
@ -6,14 +6,24 @@ clone:
|
||||||
lfs: false
|
lfs: false
|
||||||
|
|
||||||
pipeline:
|
pipeline:
|
||||||
fmt:
|
prepare-compiler:
|
||||||
image: alpine
|
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
|
- 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
|
- ./zig-linux-x86_64-0.10.0/zig fmt --check src/ tests/ build.zig
|
||||||
|
|
||||||
unit-tests:
|
unit-tests:
|
||||||
image: alpine
|
image: alpine
|
||||||
commands:
|
commands:
|
||||||
- apk add sqlite sqlite-dev libpq libpq-dev curl xz
|
- echo "Downloading dependencies..."
|
||||||
- curl https://ziglang.org/download/0.10.0/zig-linux-x86_64-0.10.0.tar.xz | xz -d | tar -x
|
- apk add sqlite sqlite-dev libpq libpq-dev
|
||||||
|
- echo "Running unit tests..."
|
||||||
- ./zig-linux-x86_64-0.10.0/zig build unit
|
- ./zig-linux-x86_64-0.10.0/zig build unit
|
||||||
|
|
Loading…
Reference in a new issue