Trevor is a command-line tool that acts like a mini local Travis CI, running your test matrix on your machine using the configuration from your .travis.yml file. Instead of pushing code to a CI service just to see if tests pass on multiple Node.js versions, you run Trevor locally and it will iterate through each specified version. Under the hood it orchestrates Node.js version switching (via n/nvm or Docker setups) and executes the configured test script as Travis would. This allows you to catch cross-version issues before pushing, keeping your Git history cleaner and reducing back-and-forth with CI. The tool reports results for each matrix entry, showing which runtime versions passed or failed so you can quickly identify compatibility problems. It is open-source, written in Node.js, and available through npm, with GitHub issues discussing options such as running from inside containers and specifying particular versions to test.
Features
- Reads .travis.yml and reproduces the Travis CI test matrix locally
- Automatically runs tests across multiple Node.js versions without manual switching
- Helps validate cross-version compatibility before pushing to remote CI
- Simple CLI workflow installed via npm for quick integration into dev habits
- Supports options like targeting specific Node versions or integrating with Docker setups
- Open-source project focused on keeping local testing aligned with Travis CI configs