• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

daixtrose/continuous-integration-demo: A demo project for C++14 using CI systems ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

daixtrose/continuous-integration-demo

开源软件地址:

https://github.com/daixtrose/continuous-integration-demo

开源编程语言:

CMake 55.1%

开源软件介绍:

THIS REPO IS COMPLETELY OUT OF DATE AND REFLECTS MY KNOWLEGDE ABOUT CMAKE FROM SOME YEARS AGO

Please read Craig Scott's "Professional CMake: A Practical Guide" instead of trying to find answers here.

TravisCI: Travis CI Build Status CircleCI: Circle CI Build Status

Continuous Integration Demo

This project serves as an example for

Make a Duplicate

If you want to use this code in your own project, please follow the advice on how to make a duplicate. In short:

git clone --bare https://github.com/daixtrose/continuous-integration-demo.git
cd continuous-integration-demo.git
git push --mirror https://github.com/youraccount/new-repository.git

Do not forget to change the links to the build status icons on the top of README.md!

Local Usage

Retrieve this repository

git clone --recursive https://github.com/daixtrose/continuous-integration-demo
cd continuous-integration-demo

Prepare for a build

mkdir build
cd build
cmake ..

Build

make

Test

Execute

make test

or

ctest -VV

for some detailed information.

Package Creation

make package
make package_source

Some Comments

Download of External Projects via CMake

About TravisCI

  • Hint: TravisCI can additionally be configured not to run on commits in branches unless those are under a pull request
  • Caveats: Travis CI only knows the status build passing or build failing, but this is misleading: A build failure is even reported in case the build succeeds and one single unit test fails. So I consider Travis CI to be a Continuous Deployment environment in the first place - with CI capability, of course.
  • Comment: IMHO the C++ integration is somewhat tricky. At the time of this writing (August 2017) Travis uses Ubuntu-14.04 (not version 16.04 or higher) which adds extra headache with regard to the available CMake version. See how others are installing a newer version of CMake before going on with the build.



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap