Compare commits
5 commits
10f3f33048
...
64bdf1c48a
Author | SHA1 | Date | |
---|---|---|---|
64bdf1c48a | |||
08eec536a0 | |||
4f96e752a8 | |||
19585a295d | |||
9fd8effba6 |
4 changed files with 6 additions and 21 deletions
|
@ -6,22 +6,9 @@ clone:
|
||||||
lfs: false
|
lfs: false
|
||||||
|
|
||||||
pipeline:
|
pipeline:
|
||||||
zig-compiler:
|
|
||||||
image: alpine
|
|
||||||
- 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
|
|
||||||
- echo "Checking formatting..."
|
|
||||||
- ./zig-linux-x86_64-0.10.0/zig fmt --check src/ tests/ build.zig
|
|
||||||
|
|
||||||
unit-tests:
|
unit-tests:
|
||||||
image: alpine
|
image: alpine
|
||||||
commands:
|
commands:
|
||||||
- echo "Downloading dependencies..."
|
- apk add sqlite sqlite-dev libpq libpq-dev curl xz
|
||||||
- apk add sqlite sqlite-dev libpq libpq-dev
|
- curl https://ziglang.org/download/0.10.0/zig-linux-x86_64-0.10.0.tar.xz | xz -d | tar -x
|
||||||
- echo "Running unit tests..."
|
- ./zig-linux-x86_64-0.10.0/zig build unit:template
|
||||||
- ./zig-linux-x86_64-0.10.0/zig build unit
|
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
# fediglam
|
# Untitled Social Network server
|
||||||
[](https://ci.heartles.xyz/heartles/fediglam)
|
|
||||||
A (soon to be federated) social networking server
|
|
||||||
|
|
||||||
## Building
|
## Building
|
||||||
### Requirements
|
### Requirements
|
||||||
|
|
|
@ -68,7 +68,7 @@ pub const Iter = struct {
|
||||||
/// + pub fn parse([]const u8) !F
|
/// + pub fn parse([]const u8) !F
|
||||||
///
|
///
|
||||||
/// Boolean Parameters:
|
/// Boolean Parameters:
|
||||||
/// The following query strings will all parse a `true` value for the
|
/// The following query strings will all parse a `true` value for the
|
||||||
/// parameter `foo: bool = false`:
|
/// parameter `foo: bool = false`:
|
||||||
/// - `?foo`
|
/// - `?foo`
|
||||||
/// - `?foo=true`
|
/// - `?foo=true`
|
||||||
|
|
|
@ -1349,7 +1349,7 @@ test "template" {
|
||||||
|
|
||||||
try testCase("", .{}, "");
|
try testCase("", .{}, "");
|
||||||
try testCase("abcd", .{}, "abcd");
|
try testCase("abcd", .{}, "abcd");
|
||||||
try testCase("{.val}", .{ .val = 3 }, "3");
|
try testCase("{.v}", .{ .v = @as(usize, 3) }, "4");
|
||||||
try testCase("{#if .val}1{/if}", .{ .val = true }, "1");
|
try testCase("{#if .val}1{/if}", .{ .val = true }, "1");
|
||||||
try testCase("{#for .vals |$v|=} {$v} {=/for}", .{ .vals = [_]u8{ 1, 2, 3 } }, "123");
|
try testCase("{#for .vals |$v|=} {$v} {=/for}", .{ .vals = [_]u8{ 1, 2, 3 } }, "123");
|
||||||
try testCase("{#for .vals |$val|}{$val}{/for}", .{ .vals = [_]u8{ 1, 2, 3 } }, "123");
|
try testCase("{#for .vals |$val|}{$val}{/for}", .{ .vals = [_]u8{ 1, 2, 3 } }, "123");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue