diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..ae0da66025b27002d67716b0d2123a6a3ab35311 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,24 @@ +image: $CONTAINER_TEST_IMAGE + +variables: + CONTAINER_TEST_IMAGE: gitlab-registry.mpcdf.mpg.de/$CI_PROJECT_PATH:$CI_BUILD_REF_NAME + OMP_NUM_THREADS: 2 + +stages: + - build_docker + - testing + +build_docker: + image: docker:stable + stage: build_docker + script: + - docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN gitlab-registry.mpcdf.mpg.de + - docker build -t $CONTAINER_TEST_IMAGE . + - docker push $CONTAINER_TEST_IMAGE + +test_suite: + stage: testing + script: + - cd pypocketfft + - pip3 install --user . + - pytest-3 -q test.py diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..b4739e07a75c38cab42273b5b9c74fdaf8c95968 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,2 @@ +FROM debian:testing-slim +RUN apt-get update && apt-get install -y git python3-pip python3-pytest && rm -rf /var/lib/apt/lists/*