Skip to content

Check if your code is running on Travis-CI build.

License

MIT, MIT licenses found

Licenses found

MIT
license
MIT
license-is-travis
Notifications You must be signed in to change notification settings

pandawing/node-is-travis-ci-build

Repository files navigation

is-travis-ci-build

NPM version Travis-CI Status Appveyor Status Daviddm Status

Check if your code is running on Travis-CI build

is-travis-ci-build-for-tag is related, only for a tag.

This is based on is-travis.

Install

$ npm install --save is-travis-ci-build

Usage

var isTravisCiBuild = require('is-travis-ci-build');

// on your local computer
isTravisCiBuild();
//=> false

// on Travis-CI build
isTravisCiBuild();
//=> true

CLI

$ npm install --global is-travis-ci-build
$ is-travis-ci-build --help
  Check if your code is running on Travis-CI build.

  Usage
    $ is-travis-ci-build

  Examples
    // on your local computer
    $ is-travis-ci-build
    This is not Travis-CI build. //=> exit code: 1

    // on Travis-CI build
    $ is-travis-ci-build
    (no output) //=> exit code: 0

API

isTravisCiBuild()

Changelog

changelog.md.

License

MIT © sanemat

MIT © Sindre Sorhus

About

Check if your code is running on Travis-CI build.

Resources

License

MIT, MIT licenses found

Licenses found

MIT
license
MIT
license-is-travis

Stars

Watchers

Forks

Packages

No packages published