diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3c96047dfc578660c370272f3cf5915a6e319971..024d82e6efa41b1c8f7a4b25ce40ab3d160edde9 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 54085aebbff56126c275e978c9b81b72d40530b8..3ef1e2246ebb2fa0153eb546c990cbf006a3155e 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" ]