From 9dc579e85304702479f2f0d3081b1b2efc8134ed Mon Sep 17 00:00:00 2001 From: Mark Meredith Date: Wed, 1 Dec 2021 12:23:53 -0500 Subject: [PATCH] Test spack build --- .gitlab-ci.yml | 20 ++++++++++++++++++++ Dockerfile | 5 ++++- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3c96047..024d82e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -48,3 +48,23 @@ test:no_cgal: variables: ENABLE_CSG: "OFF" <<: *cmake_def + +.test:spack: &spack_def + stage: test + image: $CI_REGISTRY_IMAGE:latest + needs: ['build-img'] + script: + - spack repo add .spack/repo + - spack install csg-eb ${NO_CSG} + tags: + - docker + +spack:cgal: + variables: + NO_CSG: "" + <<: *cmake_def + +spack:no_cgal: + variables: + NO_CSG: "~cgal" + <<: *cmake_def diff --git a/Dockerfile b/Dockerfile index 54085ae..3ef1e22 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,6 +19,9 @@ RUN apt-get -qq update \ && pip3 install --no-cache-dir \ cmake==3.* \ conan==1.* \ - ninja==1.* + ninja==1.* \ + + && git clone -c feature.manyFiles=true https://github.com/spack/spack.git /usr/local/spack \ + PATH=/usr/local/spack/bin:$PATH CMD [ "/bin/bash" ] -- GitLab