mirror of
https://github.com/simonw/datasette-vega.git
synced 2026-10-02 14:54:16 +02:00
Deploy to datasette-vega-latest.datasette.io if tests pass, closes #2
This commit is contained in:
parent
3cba056ba0
commit
49b983141e
1 changed files with 22 additions and 0 deletions
22
.travis.yml
Normal file
22
.travis.yml
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
language: node_js
|
||||
|
||||
node_js:
|
||||
- "stable"
|
||||
|
||||
cache:
|
||||
directories:
|
||||
- node_modules
|
||||
|
||||
script:
|
||||
- CI=true npm test
|
||||
|
||||
jobs:
|
||||
include:
|
||||
- stage: deploy datasette-vega-latest.datasette.io
|
||||
on: master
|
||||
script:
|
||||
- npm install -g now
|
||||
- REACT_APP_STAGE=dev npm run build
|
||||
- echo '{"name":"datasette-vega-latest","alias":"datasette-vega-latest.datasette.io"}' > build/now.json
|
||||
- cd build && now --name=datasette-vega-latest --token=$NOW_TOKEN
|
||||
- now alias --token=$NOW_TOKEN
|
||||
Loading…
Add table
Add a link
Reference in a new issue