diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 00000000..9c2183d2 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,33 @@ +stages: + - build + - test + - deploy + +variables: + BUILD_DIR: "build" + +before_script: + - mkdir -p $BUILD_DIR + - cd $BUILD_DIR + +build: + stage: build + script: + - cmake .. + - cmake --build . + artifacts: + paths: + - $BUILD_DIR + +test: + stage: test + script: + - cd $BUILD_DIR + - ctest --output-on-failure + +deploy: + stage: deploy + script: + - echo "Deploying..." + only: + - main