Skip to content

Instantly share code, notes, and snippets.

Created June 20, 2017 18:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/a3f26baabc70ebb69ebd14df3569ce2c to your computer and use it in GitHub Desktop.
Save anonymous/a3f26baabc70ebb69ebd14df3569ce2c to your computer and use it in GitHub Desktop.
---
-
job-template:
builders:
- link-logs
-
shell: |
#!/bin/bash -xe
sudo apt-get install -y libffi-dev libssl-dev
tox -r -e docs
name: "{backend}-client-tox-docs"
node: "{node}"
publishers:
- upload-sphinx-docs
- console-log
scm:
-
git:
branches:
- $ZUUL_COMMIT
refspec: $ZUUL_REF
skip-tag: true
url: $ZUUL_URL/$ZUUL_PROJECT
wipe-workspace: true
-
job-template:
builders:
- link-logs
-
shell: |
#!/bin/bash -xe
sudo apt-get install -y libffi-dev libssl-dev
sudo -H pip install paramiko
# TODO: Paramiko needs an ssh key for the tests to pass.
# See how to remove this dependency
ssh-keygen -f ~/.ssh/id_rsa -N '' -q
sed -i 's/debug=false/debug=true/g' config.ini
cat config.ini
tox -r -e cover
name: "{backend}-client-tox-cover"
node: "{node}"
publishers:
- coverage-log
- console-log
scm:
-
git:
branches:
- $ZUUL_COMMIT
refspec: $ZUUL_REF
skip-tag: true
url: $ZUUL_URL/$ZUUL_PROJECT
wipe-workspace: true
-
job-template:
builders:
- link-logs
-
shell: |
#!/bin/bash -xe
sudo apt-get install -y libffi-dev libssl-dev
sudo apt-get install -y python3.4-dev
# TODO: Paramiko needs an ssh key for the tests to pass.
# See how to remove this dependency
ssh-keygen -f ~/.ssh/id_rsa -N '' -q
sed -i 's/debug=false/debug=true/g' config.ini
cat config.ini
tox -r -e py34
name: "{backend}-client-tox-py34"
node: "{node}"
publishers:
- console-log
scm:
-
git:
branches:
- $ZUUL_COMMIT
refspec: $ZUUL_REF
skip-tag: true
url: $ZUUL_URL/$ZUUL_PROJECT
wipe-workspace: true
-
job-template:
builders:
- link-logs
-
shell: |
#!/bin/bash -xe
sudo apt-get install -y libffi-dev libssl-dev
# TODO: Paramiko needs an ssh key for the tests to pass.
# See how to remove this dependency
ssh-keygen -f ~/.ssh/id_rsa -N '' -q
sed -i 's/debug=false/debug=true/g' config.ini
cat config.ini
tox -r -e {tox-env}
name: "{backend}-client-tox-{tox-env}"
node: "{node}"
publishers:
- console-log
scm:
-
git:
branches:
- $ZUUL_COMMIT
refspec: $ZUUL_REF
skip-tag: true
url: $ZUUL_URL/$ZUUL_PROJECT
wipe-workspace: true
-
job-template:
builders:
- link-logs
-
shell: |
#!/bin/bash -xe
sudo apt-get install -y libffi-dev libssl-dev
export ARRAY={array}
export BACKEND={backend}
# Get the array information from devstack-gate-hp
export GIT_SSL_NO_VERIFY=1
git clone https://repomaster.3pardata.com:8081/devstack-gate-hp
export SCRIPT_DIR=$WORKSPACE/devstack-gate-hp
source devstack-gate-hp/hp_functions.sh
if [ "$BACKEND" = "3par" ] ; then
sed -i 's/unit=true/unit=false/g' config.ini
sed -i 's/user=USERNAME/user=3paradm/g' config.ini
sed -i 's/pass=PASSWORD/pass=3pardata/g' config.ini
sed -i 's/debug=false/debug=true/g' config.ini
sed -i "s/10.10.##.##/$ARRAY_IP/g" config.ini
echo 'cpg_ldlayout_ha=3' >> config.ini
if [ "$ARRAY" = "eos14" ] ; then
echo 'skip_file_persona=false' >> config.ini
fi
elif [ "$BACKEND" = "lefthand" ] ; then
sed -i 's/unit=true/unit=false/g' config.ini
sed -i 's/pass=password/pass=hpinvent/g' config.ini
sed -i 's/debug=false/debug=true/g' config.ini
sed -i "s/cluster=ClusterName/cluster=$ARRAY_CLUSTER/g" config.ini
sed -i "s/10.10.10.10/$ARRAY_IP/g" config.ini
sed -i 's/start_flask_server=true/start_flask_server=false/g' config.ini
else
echo "Unknown backend '$BACKEND' ref: {{3par|lefthand}}"
exit 1
fi
cat config.ini
tox -r -e cover
name: "{backend}-client-{array}-tests"
node: "{node}"
publishers:
- coverage-log
- console-log
scm:
-
git:
branches:
- $ZUUL_COMMIT
refspec: $ZUUL_REF
skip-tag: true
url: $ZUUL_URL/$ZUUL_PROJECT
wipe-workspace: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment