mirror of
https://dev.iopsys.eu/iopsys/imonitor.git
synced 2025-12-20 01:03:43 +08:00
Update .gitlab-ci.yml
This commit is contained in:
@@ -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: "."
|
||||
|
||||
Reference in New Issue
Block a user