$ cnpm install wait-for-netlify-preview
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_TOKEN
TRAVIS_PULL_REQUEST_SHA
TRAVIS_REPO_SLUG
$ wait-for-netlify-preview
An example .travis.yml
can be found here soon!
yarn install
or npm install
npm run dev
Inspired by wait-for-now
Copyright (c) Alexander Lichter
Copyright 2014 - 2017 © taobao.org |