项目作者: sspbft

项目描述 :
Generic status checker that integrates with GitHub Status API.
高级语言: JavaScript
项目地址: git://github.com/sspbft/loki.git
创建时间: 2019-02-13T18:43:08Z
项目社区:https://github.com/sspbft/loki

开源协议:MIT License

下载


Loki

Integration test runner as a GitHub status check.

Integrating with Loki

Writing a configuration file

Add a .loki.yml file to the project root. This file tells loki what commands to run, in what order and where they should be run. Ideally these commands run checks that should pass, such as integration tests or linting.

dir - this specifies where the commands will be executed
bootstrap - these commands are executed when cloning the repository
cmd - these are the actual commands that should indiciate failing/successful builds by their exit codes

  1. # sample .loki.yml
  2. dir: .
  3. bootstrap:
  4. - chmod +x /scripts*.sh
  5. cmd:
  6. - source env/bin/activate
  7. - ./scripts/test

Running Loki locally

  1. git clone https://github.com/sspbft/loki.git && cd loki
  2. yarn
  3. mv .env.example .env
  4. # edit .env with appropriate details
  5. yarn start

Loki is now listening for webhooks on either process.env.PORT or 3000!