Seattle Testbed components can be built and tested automatically on multiple operating systems using different versions of Python. This document describes how to configure Travis-CI and AppVeyor, two continuous integration web tools, in order to perform automated building and unit testing.
First, add the configuration files for Travis-CI and AppVeyor to the repo for which you want to enable continuous integration.
The config files (currently appveyor.yml
and .travis.yml
) should already be
in your fork/branch
.
- If not, make sure that your fork is in sync with the original SeattleTestbed repo, and
- that your
<feature>
branch is in sync with yourmaster
branch (Hint:$ git merge master
). - If the config files still aren't there, add them to your repo following the instructions below.
Next, link your GitHub user accound with the Countinuous Integration service.
Log in and enable continuous integration for a repo of your choice.
- Go to Travis-CI Website and sign in with your GitHub user ID and password
- Authorize application to access your GitHub account
- Go to your profile page
- Flick on the repo switch for the repo you want to build and test.
Note: If you are an administrator of the SeattleTestbed GitHub organization, you can also select SeattleTestbed's CI profile page and enable CI for repos there.
To actually trigger a test run,
- Commit and push something to your repo -- this triggers Travis to run the tests
- Go to
travis-ci.org/<GitHub-user>/<repo>/
to see build and test results.
You may contemplate to optionally add Travis-CI Build Status Badges to your README.md
file on GitHub.
Again, you need to log in and enable AppVeyor CI for your repo first.
- Go to AppVeyor Website and log in with your GitHub user ID and password
- Authorize application to access your GitHub account
- Click on
NEW PROJECT
- Authorize application to access your GitHub repositories
- Add the repo you want to build and test
Trigger a test run:
- Commit and push something to your repo or click
NEW BUILD
on the AppVeyor web interface, and - Go to
ci.appveyor.com/project/<GitHub-user>/<repo>/
to see your test and build results
Optionally add AppVeyor Build Status Badges to your README.md
file on GitHub*
Note: Both systems can be instructed to skip testing of a commit by adding [skip ci]
to the commit message.