如何获得Travis-CI来显示构建工件? [英] How do I get Travis-CI to show build artifacts?

查看:74
本文介绍了如何获得Travis-CI来显示构建工件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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

language: csharp 
solution: MyProject.sln

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

So, when I go to https://travis-ci.org/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.org ?
Or do I have to flip a switch somewhere else ?
Or is Travis not thought to do this ?

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

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

推荐答案

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

这篇关于如何获得Travis-CI来显示构建工件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆