代码拉取完成,页面将自动刷新
image: opensuse/tumbleweed
stages:
- build
- test
- deploy
# build advent itself
binary:debug:
stage: build
before_script:
- zypper install -y make gcc libedit-devel libasan5 libubsan1 python python2-PyYAML lcov
script:
- make debug
artifacts:
paths:
- advent
- cheat
- "*.o"
- dungeon.c
- dungeon.h
binary:release:
stage: build
before_script:
- zypper install -y make gcc libedit-devel python python2-PyYAML
script:
- make advent cheat
artifacts:
paths:
- advent
- cheat
- "*.o"
- dungeon.c
- dungeon.h
manpage:
stage: build
before_script:
- zypper install -y make asciidoc
script:
- make advent.6
artifacts:
paths:
- advent.6
html:
stage: build
before_script:
- zypper install -y make asciidoc libxslt
script:
- make html
artifacts:
paths:
- "*.html"
dist:
stage: build
before_script:
- zypper install -y make asciidoc tar gzip
script:
- export VERS=${CI_COMMIT_REF_NAME}
- make dist -e
artifacts:
paths:
- "*.tar.gz"
# run tests using the binary built before
test:debug:
stage: test
before_script:
- zypper install -y make gcc libedit-devel libasan5 libubsan1 python python2-PyYAML lcov
script:
- make coverage
artifacts:
paths:
- coverage
dependencies:
- binary:debug
test:release:
stage: test
before_script:
- zypper install -y make libedit
script:
- cd tests
- make
- cd ..
dependencies:
- binary:release
pages:
stage: deploy
script:
- mkdir public
- mv coverage public
artifacts:
paths:
- public
only:
- master
dependencies:
- test:debug
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。