-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
37 lines (33 loc) · 904 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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
- stage: release tagged version
if: tag IS present
language: python
python: 3.6
script:
- pip install -U pip wheel
deploy:
- provider: pypi
user: simonw
distributions: bdist_wheel
password: ${PYPI_PASSWORD}
on:
branch: master
tags: true
repo: simonw/datasette-vega