代码拉取完成,页面将自动刷新
image: registry.gitlab.com/iniparser/docker-cmake:latest
variables:
GIT_SUBMODULE_STRATEGY: recursive
LD_LIBRARY_PATH: ${CI_BUILDS_DIR}/iniparser/iniparser/install/lib/
stages:
- build
- doc
- test
- win
build:
stage: build
script:
- mkdir build
- cd build
- cmake -DCMAKE_INSTALL_PREFIX=../install -DBUILD_TESTING=ON -DBUILD_EXAMPLES=ON ..
- make install
- tree -a .
artifacts:
paths:
- install/
- build/
pages:
stage: doc
dependencies:
- build
script:
- mv build/html/ public/
artifacts:
paths:
- public
rules:
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
test:
stage: test
script:
- pwd
- ls -l
- cd build/
- ctest --verbose
dependencies:
- build
memcheck:
stage: test
script:
- pwd
- ls -l
- cd build/
- valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --error-exitcode=255 ctest --verbose
dependencies:
- build
iniexample-memcheck:
stage: test
script:
- pwd
- tree
- cd install/share/doc/iniparser/examples/
- valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --error-exitcode=255 ./iniexample
dependencies:
- build
iniwrite-memcheck:
stage: test
script:
- pwd
- tree
- cd install/share/doc/iniparser/examples/
- valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --error-exitcode=255 ./iniwrite
dependencies:
- build
parse-memcheck:
stage: test
script:
- pwd
- tree
- cd install/share/doc/iniparser/examples/
- valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --error-exitcode=255 ./parse
dependencies:
- build
.shared_windows_runners:
tags:
- saas-windows-medium-amd64
win-build:
extends:
- .shared_windows_runners
stage: win
script:
- git clone https://github.com/tronkko/dirent.git
- mkdir build
- cd build
- cmake -DCMAKE_INCLUDE_PATH="../dirent/include" -DBUILD_DOCS=OFF -DBUILD_TESTING=ON -DBUILD_EXAMPLES=ON ..
- cmake --build .
# due to the long provisioning time of the Windows runner, tests are
# executed in the same stage as the build
- ctest -C Debug --verbose
artifacts:
paths:
- install/
- build/
dependencies: []
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。