Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 3 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 (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-09-03T07:29:26.000Z (5 months ago)
- Last Synced: 2024-09-22T13:46:22.436Z (5 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
[![npm (scoped with tag)](https://img.shields.io/npm/v/wait-for-netlify-preview/latest.svg?style=flat-square)](https://npmjs.com/package/wait-for-netlify-preview)
[![npm](https://img.shields.io/npm/dt/wait-for-netlify-preview.svg?style=flat-square)](https://npmjs.com/package/wait-for-netlify-preview)
[![Build Status](https://travis-ci.com/Developmint/wait-for-netlify-preview.svg?branch=master)](https://travis-ci.com/Developmint/wait-for-netlify-preview)
[![codecov](https://codecov.io/gh/Developmint/wait-for-netlify-preview/branch/master/graph/badge.svg)](https://codecov.io/gh/Developmint/wait-for-netlify-preview)
[![Dependencies](https://david-dm.org/Developmint/wait-for-netlify-preview/status.svg?style=flat-square)](https://david-dm.org/Developmint/wait-for-netlify-preview)
[![js-standard-style](https://img.shields.io/badge/code_style-standard-brightgreen.svg?style=flat-square)](http://standardjs.com)
[![thanks](https://img.shields.io/badge/thanks-%E2%99%A5-ff69b4.svg)](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