summaryrefslogtreecommitdiff
path: root/playbooks/legacy/libec-pyeclib-unit/run.yaml
blob: 5aa474f969fef9590b3bd12c6b4bbb6ad0bab747 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
- hosts: all
  name: Autoconverted job legacy-libec-pyeclib-unit from old job gate-libec-pyeclib-unit-ubuntu-xenial
  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://git.openstack.org \
            openstack/liberasurecode \
            openstack/pyeclib
          # build libec
          cd openstack/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/openstack/pyeclib
          tox -e py27
        executable: /bin/bash
        chdir: '{{ ansible_user_dir }}/workspace'
      environment: '{{ zuul | zuul_legacy_vars }}'