setting ci, thisi commit will fail for now

This commit is contained in:
shockrah 2020-07-31 00:08:49 -07:00
parent 000a75c81f
commit de4493c7ab
2 changed files with 17 additions and 0 deletions

13
server/.gitlab-ci.yml Normal file
View 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

View File

@ -25,6 +25,10 @@ delete_channel() {
}
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}'
result=$($crl $POST $url/message/send -d "$kv")
code=$(echo "$result" | grep HTTP\/1.1 | awk '{print $2}')