pyeclib/playbooks/legacy/libec-pyeclib-unit-centos-7/run.yaml

36 lines
964 B
YAML

- hosts: all
name: Autoconverted job legacy-libec-pyeclib-unit-centos-7 from old job gate-libec-pyeclib-unit-centos-7
roles:
- bindep
tasks:
- name: Ensure legacy workspace directory
file:
path: '{{ ansible_user_dir }}/workspace'
state: directory
- shell:
cmd: |
set -e
set -x
cd $WORKSPACE
/usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \
https://opendev.org \
x/liberasurecode \
x/pyeclib
# build libec
cd x/liberasurecode
./autogen.sh
./configure
make
sudo make install
sudo bash -c "echo /usr/local/lib >> /etc/ld.so.conf"
sudo ldconfig
# test pyeclib
cd $WORKSPACE/x/pyeclib
tox -e py27
executable: /bin/bash
chdir: '{{ ansible_user_dir }}/workspace'
environment: '{{ zuul | zuul_legacy_vars }}'