Let your Travis CI wait for the Netlify build preview
$ yarn add wait-for-netlify-preview
$ npm install --save wait-for-netlify-preview
Requires the following environment variables:
GITHUB_API_TOKENwithrepo_deploymentscopeTRAVIS_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!
- Clone this repository
- Install dependencies using
yarn installornpm install - Start development server using
npm run dev
Inspired by wait-for-now
Copyright (c) Alexander Lichter