e5f0619b25
Rather than running from the checkout of the source tree, we should also be testing the install/distribution part of the package by pip installing. This sets up some experimental jobs to make sure this works, with the idea of converting the main jobs when it does. Change-Id: I161f58d19e57cdc985d49d8490f57cae2a441732
115 lines
3.2 KiB
YAML
115 lines
3.2 KiB
YAML
- job-template:
|
|
name: 'gate-dib-dsvm-functests-{node}'
|
|
node: '{node}'
|
|
|
|
wrappers:
|
|
- build-timeout:
|
|
timeout: 60
|
|
- timestamps
|
|
|
|
builders:
|
|
- shell: |
|
|
#!/bin/bash -eux
|
|
cd ~
|
|
|
|
/usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \
|
|
git://git.openstack.org \
|
|
openstack/diskimage-builder \
|
|
openstack/dib-utils
|
|
|
|
export PATH=$PATH:$(pwd)/openstack/dib-utils/bin
|
|
export PATH=$PATH:$(pwd)/openstack/diskimage-builder/bin
|
|
|
|
./openstack/diskimage-builder/tests/install_test_deps.sh
|
|
./openstack/diskimage-builder/tests/run_functests.sh
|
|
|
|
publishers:
|
|
- console-log
|
|
- job:
|
|
name: 'dib-buildimage-debian-ironic'
|
|
node: bare-trusty
|
|
|
|
wrappers:
|
|
- build-timeout:
|
|
timeout: 60
|
|
- timestamps
|
|
|
|
builders:
|
|
- link-logs
|
|
- net-info
|
|
- shell: |
|
|
#!/bin/bash -eux
|
|
cd ~
|
|
|
|
/usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \
|
|
git://git.openstack.org \
|
|
openstack/diskimage-builder \
|
|
openstack/dib-utils
|
|
|
|
export PATH=$PATH:$(pwd)/openstack/dib-utils/bin
|
|
export PATH=$PATH:$(pwd)/openstack/diskimage-builder/bin
|
|
|
|
./openstack/diskimage-builder/tests/install_test_deps.sh
|
|
|
|
DIB_RELEASE="jessie" disk-image-create \
|
|
-o $WORKSPACE/debian-jessie-ironic-agent \
|
|
debian ironic-agent
|
|
|
|
DIB_RELEASE="jessie" disk-image-create \
|
|
-o $WORKSPACE/debian-jessie-simple-init \
|
|
debian vm simple-init enable-serial-console
|
|
|
|
|
|
publishers:
|
|
- scp:
|
|
site: 'tarballs.openstack.org'
|
|
files:
|
|
- source: 'debian-jessie-ironic-agent.vmlinuz'
|
|
target: >
|
|
'tarballs/diskimage-builder/images/ironic-agent/debian-jessie/'
|
|
keep-hierarchy: false
|
|
copy-after-failure: false
|
|
- source: 'debian-jessie-ironic-agent.initramfs'
|
|
target: >
|
|
'tarballs/diskimage-builder/images/ironic-agent/debian-jessie/'
|
|
keep-hierarchy: false
|
|
copy-after-failure: false
|
|
- source: 'debian-jessie-simple-init.qcow2'
|
|
target: >
|
|
'tarballs/diskimage-builder/images/simple-init/debian-jessie/'
|
|
keep-hierarchy: false
|
|
copy-after-failure: false
|
|
- console-log
|
|
|
|
# this is temporary and should replace the other job when it is
|
|
# working.
|
|
- job-template:
|
|
name: 'gate-dib-dsvm-functests-{node}-pip'
|
|
node: '{node}'
|
|
|
|
wrappers:
|
|
- build-timeout:
|
|
timeout: 60
|
|
- timestamps
|
|
|
|
builders:
|
|
- shell: |
|
|
#!/bin/bash -eux
|
|
cd ~
|
|
|
|
/usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \
|
|
git://git.openstack.org \
|
|
openstack/diskimage-builder \
|
|
openstack/dib-utils
|
|
|
|
virtualenv env
|
|
|
|
./env/bin/pip install $(pwd)/openstack/dib-utils
|
|
./env/bin/pip install $(pwd)/openstack/diskimage-builder
|
|
|
|
./openstack/diskimage-builder/tests/install_test_deps.sh
|
|
./openstack/diskimage-builder/tests/run_functests.sh
|
|
|
|
publishers:
|
|
- console-log
|