Skip to content

Instantly share code, notes, and snippets.

Created June 20, 2017 17: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/45a6a64ccc1c01352d4e0c05d1681fb6 to your computer and use it in GitHub Desktop.
Save anonymous/45a6a64ccc1c01352d4e0c05d1681fb6 to your computer and use it in GitHub Desktop.
- job-template:
name: '{backend}-client-tox-docs'
node: '{node}'
scm:
- git:
url: $ZUUL_URL/$ZUUL_PROJECT
refspec: $ZUUL_REF
branches:
- $ZUUL_COMMIT
skip-tag: true
wipe-workspace: True
builders:
- link-logs
- shell: |
#!/bin/bash -xe
sudo apt-get install -y libffi-dev libssl-dev
tox -r -e docs
publishers:
- upload-sphinx-docs
- console-log
- job-template:
name: '{backend}-client-tox-cover'
node: '{node}'
scm:
- git:
url: $ZUUL_URL/$ZUUL_PROJECT
refspec: $ZUUL_REF
branches:
- $ZUUL_COMMIT
skip-tag: true
wipe-workspace: True
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
publishers:
- coverage-log
- console-log
- job-template:
name: '{backend}-client-tox-py34'
node: '{node}'
scm:
- git:
url: $ZUUL_URL/$ZUUL_PROJECT
refspec: $ZUUL_REF
branches:
- $ZUUL_COMMIT
skip-tag: true
wipe-workspace: True
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
publishers:
- console-log
- job-template:
name: '{backend}-client-tox-{tox-env}'
node: '{node}'
scm:
- git:
url: $ZUUL_URL/$ZUUL_PROJECT
refspec: $ZUUL_REF
branches:
- $ZUUL_COMMIT
skip-tag: true
wipe-workspace: True
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}
publishers:
- console-log
- job-template:
name: '{backend}-client-{array}-tests'
node: '{node}'
scm:
- git:
url: $ZUUL_URL/$ZUUL_PROJECT
refspec: $ZUUL_REF
branches:
- $ZUUL_COMMIT
skip-tag: true
wipe-workspace: True
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
export GIT_SSL_NO_VERIFY=1
export SCRIPT_DIR=$WORKSPACE/devstack-gate
source devstack-gate-hp/functions.sh
if [ "$BACKEND" = "par" ] ; then
sed -i 's/unit=true/unit=false/g' config.ini
sed -i 's/user=USERNAME/user=adm/g' config.ini
sed -i 's/pass=PASSWORD/pass=data/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=data/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: {{par|lefthand}}"
exit 1
fi
cat config.ini
tox -r -e cover
publishers:
- coverage-log
- console-log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment