mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-04-24 04:58:31 -05:00
81ace6dd1d
* run k6 test in remote server nightly * fix pipeline disable clone step download script file enable only for cron events --------- Co-authored-by: Saw-jan <saw.jan.grg3e@gmail.com>
16 lines
583 B
Bash
16 lines
583 B
Bash
#!/bin/sh
|
|
|
|
# start ocis server
|
|
sshpass -p "$SSH_OCIS_PASSWORD" ssh -o StrictHostKeyChecking=no "$SSH_OCIS_USERNAME@$SSH_OCIS_REMOTE" \
|
|
"OCIS_URL=${TEST_SERVER_URL} \
|
|
OCIS_COMMIT_ID=${DRONE_COMMIT} \
|
|
bash ~/scripts/ocis.sh start"
|
|
|
|
# start k6 tests
|
|
sshpass -p "$SSH_K6_PASSWORD" ssh -o StrictHostKeyChecking=no "$SSH_K6_USERNAME@$SSH_K6_REMOTE" \
|
|
"TEST_SERVER_URL=${TEST_SERVER_URL} \
|
|
bash ~/scripts/k6-tests.sh"
|
|
|
|
# stop ocis server
|
|
sshpass -p "$SSH_OCIS_PASSWORD" ssh -o StrictHostKeyChecking=no "$SSH_OCIS_USERNAME@$SSH_OCIS_REMOTE" "bash ~/scripts/ocis.sh stop"
|