35 lines
427 B
YAML
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
|