From a5814845f1a4b668f0c8512f2d84a598e470a6b0 Mon Sep 17 00:00:00 2001 From: Michael Buehlmann <mbuehlmann@anl.gov> Date: Thu, 9 Dec 2021 19:12:34 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..cdb07eb --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,42 @@ +image: debian:latest +before_script: + - apt update && apt -y install git gcc cmake mpich + +build_makefile: + stage: build + script: + - make + +build_cmake: + stage: build + script: + - mkdir build && cd build + - cmake .. + - make + +build_python: + stage: build + before_script: + - apt update && apt -y install git gcc cmake mpich python3 python3-pip + - pip install numpy virtualenv + - virtualenv venv + - source venv/bin/activate + script: + - python setup.py bdist_wheel + - pip install dist/* + artifacts: + paths: + - dist/*.whl + variables: + PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" + cache: + paths: + - .cache/pip + - venv/ + + +# run tests using the binary built before +# test: +# stage: test +# script: +# - ./runmytests.sh -- GitLab