代码拉取完成,页面将自动刷新
# Build configuration for Coin3D/simage package creation and upload.
#
# For automatical artifacts upload into the Downloads
# directory in the repository owner settings:
# - application password with write capabilities on the BitBucket project
# - secured environment variable named BB_AUTH_STRING containing:
# <repo owner>:<application password>
# -----
# The custom docker image from Docker Hub must contain all the pre-reqs for
# the project plus mercurial binaries.
pipelines:
custom: # manual trigger
manual-trigger:
# debian build
- step:
image: ggabbiani/simage:debian
script: # Modify the commands below to build your repository.
- mkdir target
- cd target
- cmake .. -DCMAKE_BUILD_TYPE=MinSizeRel
- make
- make test
# creates package debians with build number equal to the number of commits on the source branch
- cd cpack.d
- cpack --config debian.cmake
# pack the artifacts into a single tarball
- tar -czf debian-build-$(hg id --num --rev tip).tgz $(cat artifacts.list) artifacts.list
# creates 'last' archive
- cp debian-build-$(hg id --num --rev tip).tgz debian-build.tgz
# uploads both resulting tarballs to the download area
- curl -X POST --user "${BB_AUTH_STRING}" "https://api.bitbucket.org/2.0/repositories/${BITBUCKET_REPO_OWNER}/${BITBUCKET_REPO_SLUG}/downloads" --form files=@"debian-build.tgz" --form files=@"debian-build-$(hg id --num --rev tip).tgz"
# fedora build
- step:
image: ggabbiani/simage:fedora
script:
- mkdir target
- cd target
- cmake .. -DCMAKE_BUILD_TYPE=MinSizeRel
- make
- make test
# creates package rpms with build number equal to the number of commits on the source branch
- cd cpack.d
- cpack --config fedora.cmake
# pack the artifacts into a single tarball
- tar -czf fedora-build-$(hg id --num --rev tip).tgz $(cat artifacts.list) artifacts.list
# creates 'last' archive
- cp fedora-build-$(hg id --num --rev tip).tgz fedora-build.tgz
# uploads both resulting tarballs to the download area
- curl -X POST --user "${BB_AUTH_STRING}" "https://api.bitbucket.org/2.0/repositories/${BITBUCKET_REPO_OWNER}/${BITBUCKET_REPO_SLUG}/downloads" --form files=@"fedora-build.tgz" --form files=@"fedora-build-$(hg id --num --rev tip).tgz"
# ubuntu build
- step:
image: ggabbiani/simage:ubuntu
script: # Modify the commands below to build your repository.
- mkdir target
- cd target
- cmake .. -DCMAKE_BUILD_TYPE=MinSizeRel
- make
- make test
# creates package debians with build number equal to the number of commits on the source branch
# for ubuntu images just use the debian cpack config
- cd cpack.d
- cpack --config debian.cmake
# pack the artifacts into a single tarball
- tar -czf ubuntu-build-$(hg id --num --rev tip).tgz $(cat artifacts.list) artifacts.list
# creates 'last' archive
- cp ubuntu-build-$(hg id --num --rev tip).tgz ubuntu-build.tgz
# uploads both resulting tarballs to the download area
- curl -X POST --user "${BB_AUTH_STRING}" "https://api.bitbucket.org/2.0/repositories/${BITBUCKET_REPO_OWNER}/${BITBUCKET_REPO_SLUG}/downloads" --form files=@"ubuntu-build.tgz" --form files=@"ubuntu-build-$(hg id --num --rev tip).tgz"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。