Files
handleaiuinew/.gitlab-ci.yml
T
2024-08-07 10:23:44 +00:00

35 lines
427 B
YAML

stages:
- build
- test
- deploy
variables:
BUILD_DIR: "build"
before_script:
- rm -rf $BUILD_DIR
- 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