Skip to content

Developmint/wait-for-netlify-preview

Repository files navigation

wait-for-netlify-preview

Let your Travis CI wait for the Netlify build preview

npm (scoped with tag) npm Build Status codecov Dependencies js-standard-style thanks

📖 Release Notes

Setup

Yarn

$ yarn add wait-for-netlify-preview

npm

$ npm install --save wait-for-netlify-preview

Usage

Requires the following environment variables:

  • GITHUB_API_TOKEN with repo_deployment scope
  • TRAVIS_PULL_REQUEST_SHA (automatically provided by travis)
  • TRAVIS_REPO_SLUG (automatically provided by travis)
$ wait-for-netlify-preview

An example .travis.yml can be found here soon!

Development

  • Clone this repository
  • Install dependencies using yarn install or npm install
  • Start development server using npm run dev

Inspiration

Inspired by wait-for-now

License

MIT License

Copyright (c) Alexander Lichter