使用Python设置Travis CI的小模板
使用Python设置Travis CI的小模板
Travis Python Template
This package provides a basic template for setting up Travis CI with Python. It assumes you are using conda for installation of dependencies, and pytest to run your unit tests.
Setting Up Travis
Sign in to Travis with your GitHub account (authentication page) and accept the permissions confirmation (this needs to be done only once).Go to your Travis profile page and click the check-box next to the repository you want to test (you may have to first click the "Sync Repositories" button if it is a new repo).Commit a file called .travis.yml in your repository (note that it must start with a ".", which marks it as a hidden file). Feel free to copy and modify the one from this repository (you'll need to change the PACKAGENAME and CONDA_DEPS variables to match your package) Pushing this file to master will trigger a new travis build. If the file is already in the repository, a push to master or the opening of a pull request will trigger a new build.If you wish, add a "build status" icon to your README. The code looks like this, (Note that you must, in two places, replace username with your GitHub username, and repo with the name of your respository) []( https://travis-ci.org/username/repo)
More detailed info is available from Travis itself; see the getting started page. For a template with some more advanced info (including coverage, automatic deployment, etc.) check out the shablona project.
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。