Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/vadimdemedes/trevor

🚦 Your own mini Travis CI to run tests locally
https://github.com/vadimdemedes/trevor

Last synced: about 1 month ago
JSON representation

🚦 Your own mini Travis CI to run tests locally

Lists

README

        









[![Build Status](https://travis-ci.org/vadimdemedes/trevor.svg?branch=master)](https://travis-ci.org/vadimdemedes/trevor)

> Your own Travis CI to run tests locally.

## Purpose

I often need to run tests for multiple versions of Node.js.
But I don't want to switch versions manually using `n`/`nvm` or push the code to Travis CI just to run the tests.

That's why I created Trevor. It reads `.travis.yml` and runs tests in all versions you requested, just like Travis CI.
Now, you can test before push and keep your git history clean.

## Requirements

- [Docker](https://www.docker.com)

## Installation

```
$ npm install --global trevor
```

## Usage

Given the following `.travis.yml` file:

```yaml
language: node_js
node_js:
- '7'
- '6'
- '4'
```

Run `trevor` in project's directory:

```
$ trevor
```

## License

MIT Β© [Vadim Demedes](https://vadimdemedes.com)