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
|
@@ -95,10 +95,10 @@ if(MAINTAINER_MODE)
|
||||
endif(MAINTAINER_MODE)
|
||||
|
||||
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
||||
install(FILES conky.desktop DESTINATION share/applications)
|
||||
install(FILES logo/conky-logomark-violet.svg DESTINATION share/icons/hicolor/scalable/apps)
|
||||
endif (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
||||
|
||||
install(FILES conky.desktop DESTINATION share/applications)
|
||||
install(FILES logo/conky-logomark-violet.svg
|
||||
DESTINATION share/icons/hicolor/scalable/apps)
|
||||
endif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
||||
|
||||
if(CHECK_CODE_QUALITY)
|
||||
# Set up clang-tidy
|
||||
|
Reference in New Issue
Block a user