Skip to content

Check if your code is running on Travis-CI build for a tag

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-for-tag

Repository files navigation

is-travis-ci-build-for-tag

NPM version Travis-CI Status Appveyor Status Daviddm Status

Check if your code is running on Travis-CI build for a tag

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

This is based on is-travis.

Install

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

Usage

var isTravisCiBuildForTag = require('is-travis-ci-build-for-tag');

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

// on Travis-CI build for a tag
isTravisCiBuildForTag();
//=> true

CLI

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

  Usage
    $ is-travis-ci-build-for-tag

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

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

API

isTravisCiBuildForTag()

Changelog

changelog.md.

License

MIT © sanemat

MIT © Sindre Sorhus

About

Check if your code is running on Travis-CI build for a tag

Resources

License

MIT, MIT licenses found

Licenses found

MIT
license
MIT
license-is-travis

Stars

Watchers

Forks

Packages

No packages published