Compare commits

...

4 commits

Author SHA1 Message Date
Simon Willison
113f05de87 Deploy on pushes to master 2018-06-26 08:28:35 -07:00
Simon Willison
64be9a6f0d Set REACT_APP_STAGE when building demo 2018-06-26 08:24:44 -07:00
Simon Willison
7280e8500c Put now.json in the correct directory 2018-06-26 08:19:35 -07:00
Simon Willison
094c7fba3d Deploy to datasette-vega-latest.datasette.io if tests pass, refs #2 2018-06-26 08:16:48 -07:00

22
.travis.yml Normal file
View 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