-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
38 lines (32 loc) · 978 Bytes
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
default:
@just --list
run-client:
@just client-rs/run
run-server:
@just server/run
client-go:
go run client-go/main.go
protoc-go:
protoc \
--go_out=./client-go \
--go_opt=paths=source_relative \
--go-grpc_out=./client-go \
--go-grpc_opt=paths=source_relative \
proto/asciidoctor.proto
test:
#!/bin/bash
set -euxo pipefail
just server/run 2> /dev/null &
actual=$(echo '*hello*' | just client-rs/run | tr -d '\n')
kill -9 $(pgrep asciidoctor-server)
expected="<div class=\"paragraph\"><p><strong>hello</strong></p></div>"
diff -w <(echo "$actual") <(echo "$expected")
echo "Test passed"
test-ci:
#!/bin/bash
set -euxo pipefail
just server/run 2> /dev/null &
actual=$(echo '*hello*' | just client-rs/run | tr -d '\n')
expected="<div class=\"paragraph\"><p><strong>hello</strong></p></div>"
diff -w <(echo "$actual") <(echo "$expected")
echo "Test passed"