https://github.com/lablup/testion
A simple CI server for us
https://github.com/lablup/testion
Last synced: 2 months ago
JSON representation
A simple CI server for us
- Host: GitHub
- URL: https://github.com/lablup/testion
- Owner: lablup
- License: mit
- Created: 2016-10-14T07:20:14.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-10-26T14:40:13.000Z (over 8 years ago)
- Last Synced: 2025-01-03T22:27:42.338Z (4 months ago)
- Language: Python
- Size: 52.7 KB
- Stars: 0
- Watchers: 15
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# testion
A simple CI server for us## Installation
You need to install this inside a virtualenv where your target project's
dependencies are installed.Simply run `python setup.py install` then.
If you encounter errors while installing `uritemplate` package, then
manually install `github3.py` package using pip and retry.
There is a temporary issue due to renaming of `uritemplate` package
which is not handeld in the stable version of `github3.py` package.If you encounter errors like:
`Failed to resolve address for https: Name or service not known`
then your libgit2 installation does not support SSL.
In Debian Linux, you need to compile libgit2 manually to resolve
this issue due to [OpenSSL license conflicts](https://github.com/libgit2/pygit2/issues/644).## Configuration
Testion requires the following environment variables:
* `GH_USERNAME` for GitHub login.
* `GH_TOKEN` for GitHub login (substitute for passwords)Additionally, it needs the following environment variables to upload logs to AWS S3:
* `AWS_ACCESS_KEY_ID`
* `AWS_SECRET_ACCESS_KEY`
* `AWS_DEFAULT_REGION`You should create your own `config.yml` file which specifies a list of repository configs
and test suite configs inside each of them.For an example configuration for this repository, take a look at [config.sample.yml](config.sample.yml).
## Running
`python -m testion.server -p ` opens an HTTP server accepting webhook
requests on the given port.The webhook URL is `http://:/webhook?report=`
where *key* is a unique identifier for a test suite.It expects `X-Github-Event: push` header and a JSON-formatted body as
[described here](https://developer.github.com/v3/activity/events/types/#pushevent)
with the `POST` method.