setting ci, thisi commit will fail for now
This commit is contained in:
parent
000a75c81f
commit
de4493c7ab
13
server/.gitlab-ci.yml
Normal file
13
server/.gitlab-ci.yml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
image: sseemayer/rust-musl-builder-mingw
|
||||||
|
|
||||||
|
build-test:
|
||||||
|
stage: build
|
||||||
|
only:
|
||||||
|
- testing
|
||||||
|
script:
|
||||||
|
- cargo build --release
|
||||||
|
|
||||||
|
curl:
|
||||||
|
- cargo run --release
|
||||||
|
- fc_id=$!
|
||||||
|
- bash ./tests/main.sh body
|
@ -25,6 +25,10 @@ delete_channel() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
send_message() {
|
send_message() {
|
||||||
|
# creating a bs channel, we don't care about this operation
|
||||||
|
# as long as the other test passes this should be fine
|
||||||
|
$crl $POST $url/channel/create -d '{"secret":"secret","name":"msgchannel"}'
|
||||||
|
|
||||||
kv='{"secret":"secret", "content":"message sample", "channel":123}'
|
kv='{"secret":"secret", "content":"message sample", "channel":123}'
|
||||||
result=$($crl $POST $url/message/send -d "$kv")
|
result=$($crl $POST $url/message/send -d "$kv")
|
||||||
code=$(echo "$result" | grep HTTP\/1.1 | awk '{print $2}')
|
code=$(echo "$result" | grep HTTP\/1.1 | awk '{print $2}')
|
||||||
|
Loading…
Reference in New Issue
Block a user