From de4493c7ab9e484d51bdb514f8815e5b9b882b4b Mon Sep 17 00:00:00 2001 From: shockrah Date: Fri, 31 Jul 2020 00:08:49 -0700 Subject: [PATCH] setting ci, thisi commit will fail for now --- server/.gitlab-ci.yml | 13 +++++++++++++ server/tests/verify_basic_cases.sh | 4 ++++ 2 files changed, 17 insertions(+) create mode 100644 server/.gitlab-ci.yml 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}')