Created
June 20, 2017 17:36
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
- 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