Add gitlab CI.
This commit is contained in:
23
.gitlab-ci.yml
Normal file
23
.gitlab-ci.yml
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
stages:
|
||||||
|
- build
|
||||||
|
- test
|
||||||
|
- lint
|
||||||
|
|
||||||
|
image: brndnmtthws/conky-builder:latest
|
||||||
|
|
||||||
|
build:
|
||||||
|
script:
|
||||||
|
- mkdir build
|
||||||
|
- cd build
|
||||||
|
- cmake ..
|
||||||
|
- make -j4
|
||||||
|
|
||||||
|
test:
|
||||||
|
script:
|
||||||
|
- cd build
|
||||||
|
- make test
|
||||||
|
|
||||||
|
lint:
|
||||||
|
- cd build
|
||||||
|
- cmake -DCHECK_CODE_QUALITY=ON ..
|
||||||
|
- make check
|
@@ -96,9 +96,9 @@ endif(MAINTAINER_MODE)
|
|||||||
|
|
||||||
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
||||||
install(FILES conky.desktop DESTINATION share/applications)
|
install(FILES conky.desktop DESTINATION share/applications)
|
||||||
install(FILES logo/conky-logomark-violet.svg DESTINATION share/icons/hicolor/scalable/apps)
|
install(FILES logo/conky-logomark-violet.svg
|
||||||
endif (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
DESTINATION share/icons/hicolor/scalable/apps)
|
||||||
|
endif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
||||||
|
|
||||||
if(CHECK_CODE_QUALITY)
|
if(CHECK_CODE_QUALITY)
|
||||||
# Set up clang-tidy
|
# Set up clang-tidy
|
||||||
|
Reference in New Issue
Block a user