diff --git a/server/.gitlab-ci.yml b/server/.gitlab-ci.yml new file mode 100644 index 0000000..298ffcd --- /dev/null +++ b/server/.gitlab-ci.yml @@ -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 diff --git a/server/tests/verify_basic_cases.sh b/server/tests/verify_basic_cases.sh index ed653ed..1eda5da 100644 --- a/server/tests/verify_basic_cases.sh +++ b/server/tests/verify_basic_cases.sh @@ -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}')