Update .gitlab-ci.yml

This commit is contained in:
Suru Dissanaike
2021-05-11 13:57:32 +00:00
parent 4beb1d5d69
commit f025164537

View File

@@ -1,66 +1,10 @@
default:
image: registry.iopsys.eu:5000/inteno/imonitor:0.4
include:
- project: 'iopsys/gitlab-ci-pipeline'
file: '/static-code-analysis.yml'
stages:
- build
- test
- test-pkg
- static_code_analysis
build-job:
stage: build
script:
- .gitlab-ci/build.sh
cache:
key: ${CI_COMMIT_SHA}
paths:
- CMakeFiles/
- test/
- imonitor
- libimonitor-api.so
- CMakeCache.txt
- CTestTestfile.cmake
- Makefile
#except:
#refs:
#- master
test-job:
stage: test
script:
- .gitlab-ci/test.sh
artifacts:
name: "Test coverage"
paths:
- test/
- test_coverage/
- Testing/
- flawfinder.out
- cppcheck.out
when: always
expire_in: 1 week
cache:
key: ${CI_COMMIT_SHA}
paths:
- CMakeFiles/
- test/
- imonitor
- libimonitor-api.so
- CMakeCache.txt
- CTestTestfile.cmake
- Makefile
allow_failure: true
#except:
#refs:
#- master
test-pkg-job:
stage: test-pkg
script:
- .gitlab-ci/test-pkg.sh
artifacts:
name: "Test report"
paths:
- .
only:
refs:
- master
variables:
DEBUG: 'TRUE'
SOURCE_FOLDER: "."