如何获得Travis

编程入门 行业动态 更新时间:2024-10-25 12:20:30
本文介绍了如何获得Travis-CI来显示构建工件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我已在travis-ci上将Travic-CI添加到我的github项目中..travis.yml文件如下所示:

I have added Travic-CI on travis-ci to my github project. The .travis.yml file looks like this:

language: csharp solution: MyProject.sln

所以,当我去 travis-ci/username/MyProject/builds/somenumber ,然后将构建显示为通过.我还可以看到日志文件,但无处看不到生成的文件(.exe).我是否需要向.travis.yml中添加任何内容,以便它在travis-ci的项目页面上以工件的形式显示/发布我的.exe?还是我必须将开关拨到其他地方?还是不认为特拉维斯这样做?

So, when I go to travis-ci/username/MyProject/builds/somenumber , then it shows the build as passing. I can also see the log-file, but I can nowhere see the the files generated (the .exe). Do I have to add anything to .travis.yml so it displays/publishes my .exe as artifact on my project's page on travis-ci ? Or do I have to flip a switch somewhere else ? Or is Travis not thought to do this ?

注意: 在travis-ci上显示可执行文件(这样我就可以从github链接到它),而不是像发布到github那样自动地将其发布,尽管那也可以.

Note: Show the executable on travis-ci (so I can link to it from github), not publishing it automagically as release to github, althought that would be fine, too.

推荐答案

默认情况下,构建工件随计算机一起丢弃.重要的是构建和测试结果.如果要保留部分或全部构建工件,请查看 deploy 选项: docs.travis-ci/user/deployment/

By default, the build artifacts are thrown away with the machine. What counts is the build and test result. If you want to retain some or all build artifacts, have a look at the deploy options: docs.travis-ci/user/deployment/

更多推荐

如何获得Travis

本文发布于:2023-11-17 05:10:27,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1608942.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何获得   Travis

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!