mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-01-27 09:08:25 +00:00
Add gitlab CI.
This commit is contained in:
parent
b3db652f4b
commit
ed1d6eb8fd
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user