Skip to content

Commit

Permalink
setup ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ClausKlein committed Aug 28, 2023
1 parent 850dde5 commit bc1b50f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 35 deletions.
31 changes: 0 additions & 31 deletions .cookiecutter.json

This file was deleted.

10 changes: 6 additions & 4 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,25 +25,27 @@ build-job: # This job runs in the build stage, which runs first.
stage: build
script:
- echo "Compiling the code..."
- cmake --preset default
- cmake --build --preset default
- echo "Compile complete."

unit-test-job: # This job runs in the test stage.
stage: test # It only starts when the job in the build stage completes successfully.
script:
- echo "Running unit tests... This will take about 60 seconds."
- sleep 60
- echo "Code coverage is 90%"
- cmake --build --preset default --target test
- gcovr .

lint-test-job: # This job also runs in the test stage.
stage: test # It can run at the same time as unit-test-job (in parallel).
script:
- echo "Linting code... This will take about 10 seconds."
- sleep 10
- run-clang-tidy -p build
- echo "No lint issues found."

deploy-job: # This job runs in the deploy stage.
stage: deploy # It only runs when *both* jobs in the test stage complete successfully.
environment: production
script:
- echo "Deploying application..."
- echo "Application successfully deployed."
- echo "Application NOT deployed yet."

0 comments on commit bc1b50f

Please sign in to comment.