-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
run k6 test in remote server nightly (#7869)
* 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 <[email protected]>
- Loading branch information
1 parent
c8dc52c
commit 81ace6d
Showing
2 changed files
with
73 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/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" |