https://github.com/developmint/wait-for-netlify-preview
Let your Travis CI wait for the Netlify build preview
https://github.com/developmint/wait-for-netlify-preview
buildpreview ci netlify preview travisci wait
Last synced: 5 months ago
JSON representation
Let your Travis CI wait for the Netlify build preview
- Host: GitHub
- URL: https://github.com/developmint/wait-for-netlify-preview
- Owner: Developmint
- License: mit
- Created: 2019-01-09T00:44:06.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-09-03T07:29:26.000Z (8 months ago)
- Last Synced: 2024-09-22T13:46:22.436Z (7 months ago)
- Topics: buildpreview, ci, netlify, preview, travisci, wait
- Language: JavaScript
- Homepage:
- Size: 434 KB
- Stars: 14
- Watchers: 2
- Forks: 4
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# wait-for-netlify-preview
> Let your Travis CI wait for the Netlify build preview
[](https://npmjs.com/package/wait-for-netlify-preview)
[](https://npmjs.com/package/wait-for-netlify-preview)
[](https://travis-ci.com/Developmint/wait-for-netlify-preview)
[](https://codecov.io/gh/Developmint/wait-for-netlify-preview)
[](https://david-dm.org/Developmint/wait-for-netlify-preview)
[](http://standardjs.com)
[](https://thanks.lichter.io/)[📖 **Release Notes**](./CHANGELOG.md)
## 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](https://github.com/wyze/wait-for-now)
## License
[MIT License](./LICENSE)
Copyright (c) Alexander Lichter