Created
June 20, 2017 19:04
-
-
Save anonymous/05114618b171f188a72ceb19e8eb6ca3 to your computer and use it in GitHub Desktop.
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-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 | |
publishers: | |
- coverage-log | |
- console-log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment