加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/ndevilla/iniparser/
克隆/下载
.gitlab-ci.yml 2.54 KB
一键复制 编辑 原始数据 按行查看 历史
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: []
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化