diff options
author | Zuul <zuul@review.openstack.org> | 2018-10-22 19:10:33 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2018-10-22 19:10:33 +0000 |
commit | 405775cba1d1ac06b86b2fab64e8f9d03ab2fd0e (patch) | |
tree | a41870bc3082314f40f36ce46027d5781a245b53 | |
parent | b046ff7091e710ecafb31b13678e0092fd1d3fd7 (diff) | |
parent | 096effe62a614085d4fccc3f67ddb06650ad5b5e (diff) | |
download | liberasurecode-405775cba1d1ac06b86b2fab64e8f9d03ab2fd0e.tar.gz |
Merge "Install Jerasure and ISA-L libs"
-rw-r--r-- | playbooks/unittests/run.yaml | 17 | ||||
-rw-r--r-- | roles/install_isal/tasks/main.yaml | 26 | ||||
-rw-r--r-- | roles/install_jerasure/tasks/main.yaml | 36 | ||||
-rw-r--r-- | roles/test_liberasurecode/tasks/main.yaml | 14 |
4 files changed, 80 insertions, 13 deletions
diff --git a/playbooks/unittests/run.yaml b/playbooks/unittests/run.yaml index c66c4e3..9818ef9 100644 --- a/playbooks/unittests/run.yaml +++ b/playbooks/unittests/run.yaml @@ -1,15 +1,6 @@ - hosts: all + roles: + - install_isal + - install_jerasure + - test_liberasurecode - tasks: - - name: Build and test - shell: - cmd: | - set -e - set -x - ./autogen.sh - ./configure - make - make test - make valgrind-test - executable: /bin/bash - chdir: '{{ zuul.project.src_dir }}' diff --git a/roles/install_isal/tasks/main.yaml b/roles/install_isal/tasks/main.yaml new file mode 100644 index 0000000..a9aa100 --- /dev/null +++ b/roles/install_isal/tasks/main.yaml @@ -0,0 +1,26 @@ +- name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + +- name: install yasm + package: + name: yasm + state: present + become: yes + +- name: Build and Install ISA-L + shell: + cmd: | + set -e + set -x + cd $WORKSPACE + git clone git://github.com/01org/isa-l.git + cd isa-l + ./autogen.sh + ./configure + make + sudo make install + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/roles/install_jerasure/tasks/main.yaml b/roles/install_jerasure/tasks/main.yaml new file mode 100644 index 0000000..6a5abe9 --- /dev/null +++ b/roles/install_jerasure/tasks/main.yaml @@ -0,0 +1,36 @@ +- name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + +- name: Build and Install GF-Complete + shell: + cmd: | + set -e + set -x + cd $WORKSPACE + git clone http://lab.jerasure.org/jerasure/gf-complete.git + cd gf-complete + ./autogen.sh + ./configure + make + sudo make install + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + +- name: Build and Install Jerasure + shell: + cmd: | + set -e + set -x + cd $WORKSPACE + git clone http://lab.jerasure.org/jerasure/jerasure.git + cd jerasure + autoreconf --force --install + ./configure + make + sudo make install + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/roles/test_liberasurecode/tasks/main.yaml b/roles/test_liberasurecode/tasks/main.yaml new file mode 100644 index 0000000..4df9215 --- /dev/null +++ b/roles/test_liberasurecode/tasks/main.yaml @@ -0,0 +1,14 @@ +- name: Build and test liberasurecode + shell: + cmd: | + set -e + set -x + sudo bash -c "echo /usr/local/lib >> /etc/ld.so.conf" + sudo ldconfig + ./autogen.sh + ./configure + make + make test + make valgrind-test + executable: /bin/bash + chdir: '{{ zuul.project.src_dir }}' |