diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..cdb07eb61028cedf4b8de7d2b4eda4c1a52a4bbf --- /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