DynuIPRefresher/.gitlab-ci.yml
lukas fb65ef98fa new gitlab ci for windows build
cmake- check if gtest is installed on build system
validate compiler after setting of compiler paths
2020-05-19 20:58:18 +02:00

103 lines
1.5 KiB
YAML

stages:
- cmake
- build
- post
# Unix Build
cmake:
stage: cmake
image: luki42/dynuiprefresher_build:latest
script:
- cmake -S . -B build
cache:
paths:
- build/
- inc/
- postinst
build:
stage: build
image: luki42/dynuiprefresher_build:latest
script:
- cd build
- make
artifacts:
paths:
- "build/bin/*"
cache:
paths:
- build/
- inc/
- postinst
build_package:
stage: post
image: luki42/dynuiprefresher_build:latest
script:
- cd build
- make package
artifacts:
paths:
- "build/packages/*"
cache:
paths:
- build/
- inc/
- postinst
test:
stage: post
image: luki42/dynuiprefresher_build:latest
script:
- cd build
- make test
- make build-xml
artifacts:
reports:
junit: build/report.xml
cache:
paths:
- build/
- inc/
- postinst
# Windows Build
cmake_win64:
stage: cmake
image: luki42/dynuiprefresher_build:windows
script:
- cmake -S . -B build -D WinBuild=ON
cache:
paths:
- build/
- inc/
build_win64:
stage: build
image: luki42/dynuiprefresher_build:windows
script:
- cd build
- make iprefresher
artifacts:
paths:
- "build/bin/*"
cache:
paths:
- build/
- inc/
build_package_win64:
stage: post
image: luki42/dynuiprefresher_build:windows
script:
- cd build
- make package
artifacts:
paths:
- "build/packages/*"
cache:
paths:
- build/
- inc/