diff --git a/ansible/ci.yaml b/ansible/ci.yaml index a3dd3c053ea059e80e6cb8f02be9cbe2c8cc1e49..2a490c95036e70f10ab1b8cb6d30e5452c725c37 100644 --- a/ansible/ci.yaml +++ b/ansible/ci.yaml @@ -5,4 +5,6 @@ roles: - common - { role: aml, ci: true, install: false} + - { role: nrm, ci: true, install: false} + - { role: umap, ci: true, install: false} - { role: ci-runner, become: yes } diff --git a/ansible/roles/common/tasks/argo-dependencies.yaml b/ansible/roles/common/tasks/argo-dependencies.yaml index c58e7ca11db912b72ea8679429d95a5ebca15206..1339d4d225ece9f64e2cfd7d4813ca97bef31016 100644 --- a/ansible/roles/common/tasks/argo-dependencies.yaml +++ b/ansible/roles/common/tasks/argo-dependencies.yaml @@ -17,6 +17,7 @@ - autoconf - libtool - make + - cmake3 - name: add pipenv for python packages command: pip install pipenv diff --git a/ansible/roles/umap/tasks/ci.yaml b/ansible/roles/umap/tasks/ci.yaml new file mode 100644 index 0000000000000000000000000000000000000000..b4c30dc22a33edae95b9562d4220853546aa8a73 --- /dev/null +++ b/ansible/roles/umap/tasks/ci.yaml @@ -0,0 +1,6 @@ +- name: add umap CI dependencies + package: + name: "{{ item }}" + state: present + with_items: + - valgrind diff --git a/ansible/roles/umap/tasks/dependencies.yaml b/ansible/roles/umap/tasks/dependencies.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f8447aa2f201575355ab29b170faed5c6f091dc3 --- /dev/null +++ b/ansible/roles/umap/tasks/dependencies.yaml @@ -0,0 +1,6 @@ +- name: add umap dependencies + package: + name: "{{ item }}" + state: present + with_items: + - cmake3 diff --git a/ansible/roles/umap/tasks/install.yaml b/ansible/roles/umap/tasks/install.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ae6e0e4e7ade1ec9fd8815c6e1e249b459539678 --- /dev/null +++ b/ansible/roles/umap/tasks/install.yaml @@ -0,0 +1,15 @@ +- name: fetch umap repository + git: + repo: https://xgitlab.cels.anl.gov/argo/umap.git + dest: /argo/umap.git + update: yes + +- name: create build directory + file: + state: directory + path: /argo/umap.git/build + +- name: compile umap + shell: cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release && make && make install + args: + chdir: /argo/umap.git/build diff --git a/ansible/roles/umap/tasks/main.yaml b/ansible/roles/umap/tasks/main.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a7bb4a865179e4c96c718807a833ae8017019ede --- /dev/null +++ b/ansible/roles/umap/tasks/main.yaml @@ -0,0 +1,3 @@ +- { include: dependencies.yaml, become: yes } +- { include: install.yaml, become: yes, when: install } +- { include: ci.yaml, become: yes, when: ci }