forked from vega/vega-lite
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
43 lines (38 loc) · 1.01 KB
/
.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
38
39
40
41
42
43
language: node_js
node_js:
- "8"
- "10"
env: LATEST=false
matrix:
include:
- node_js: "11" # Update version in check-and-fix.sh as well.
env: LATEST=true
before_install: |
# Minimal installation as described in https://github.com/martinda/gnu-parallel
wget http://git.savannah.gnu.org/cgit/parallel.git/plain/src/parallel
chmod +x parallel
cp parallel sem
sudo mv parallel sem /usr/local/bin
script: |
set -ex
yarn data
if [ $LATEST = true ]; then
yarn build
yarn jest test/ --collectCoverage=true
yarn codecov
yarn jest examples/
yarn test:runtime
./scripts/check-schema.sh
./scripts/check-and-fix.sh
yarn lint
else
yarn build:only
yarn test:runtime
yarn jest test/ examples/
fi
after_success:
- bash <(curl -s https://codecov.io/bash)
cache: yarn
env:
global:
secure: I9sReagJiE7B0154AnU3t8WcdPtmZm86vMp+6umKegvzYr46jbypPAmlWW50A09fw4AmTaGOtwpYtvglf0JikkR6saXY0rRquDnO70DRmbdrO2o2WMjjCzkYID58SkGvqsqVJ4HXcu0HdJp6o5L7v7JMdzji6abYKxtsnw2ouk0=