-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move the .sh to the .yaml workflow for pmm_ps
- Loading branch information
1 parent
057d86f
commit 4c3238d
Showing
2 changed files
with
40 additions
and
42 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 |
---|---|---|
@@ -1,39 +0,0 @@ | ||
#!/bin/bash | ||
|
||
#Fetch PMM-QA Repo, this contains pmm-framework script, playbook required for the tests | ||
#$PS_VERSION Variable will be fetched from the github actions env variable. | ||
|
||
echo $PS_VERSION | ||
|
||
PS_TARBALL_PATH=https://downloads.percona.com/downloads/TESTING/ps-$PS_VERSION/Percona-Server-$PS_VERSION-Linux.x86_64.glibc$PS_GLIBC.tar.gz | ||
|
||
MS_TARBALL_PATH=https://dev.mysql.com/get/Downloads/MySQL-8/mysql-$MS_VERSION-linux-glibc$MS_GLIBC-x86_64.tar.xz | ||
|
||
PMM_QA_REPO_URL=https://github.com/percona/pmm-qa/ | ||
|
||
PMM_QA_REPO_BRANCH=main | ||
|
||
# Delete if the Repo already checkedout | ||
sudo rm -r pmm-qa || true | ||
|
||
git clone -b $PMM_QA_REPO_BRANCH $PMM_QA_REPO_URL | ||
|
||
cd pmm-qa | ||
|
||
# Give write perimssion to the bash script | ||
chmod +x ./pmm-tests/pmm-framework.sh | ||
|
||
#Run the pmm container in backgrounds | ||
docker run --detach --restart always -p 443:443 -p 80:80 --name pmm-server $PMM_IMAGE | ||
|
||
sudo pmm-admin config '--server-url=https://admin:admin@localhost:443' --force --log-level=debug --server-insecure-tls | ||
|
||
#Change directory to pmm-tests | ||
cd pmm-tests | ||
|
||
#Run for ms version and ms client 1 | ||
./pmm-framework.sh --ms-version ms-$PS_VERSION --addclient=ms,1 --pmm2 --ms-tarball $MS_TARBALL_PATH | ||
|
||
|
||
#Run for ps version and ps client 1 | ||
./pmm-framework.sh --ps-version ps-$PS_VERSION --addclient=ps,1 --pmm2 --ms-tarball $PS_TARBALL_PATH | ||