forked from heremaps/harp.gl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
65 lines (58 loc) · 1.5 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
language: node_js
dist: bionic
node_js:
- "12"
cache:
yarn: true
directories:
- "node_modules/.cache"
addons:
chrome: stable
firefox: latest
branches:
only:
- master
- release
env:
- DETECT_CHROMEDRIVER_VERSION=true
- HARP_NO_HARD_SOURCE_CACHE=true
before_install:
- yarn global add codecov
jobs:
include:
- name: "Test"
script:
- yarn pre-test
- yarn cov-test --forbid-only
- yarn build-tests
- yarn test-browser --headless-firefox
- yarn test-browser --headless-chrome
- ./scripts/test-npm-packages.sh
- name: "Build & Deploy"
script:
- cross-env NODE_ENV=production yarn run build
- yarn run typedoc
- cross-env NODE_ENV=production yarn run build-www
- yarn prepare-doc-deploy
# debug: lerna publish expects clean workspace
- ./scripts/git-check-clean-workspace.sh
deploy:
- provider: script
script: ./scripts/publish-packages.sh
skip_cleanup: true
on:
branch: release
- provider: s3
access_key_id: $AWS_ACCESS_KEY_ID
secret_access_key: $AWS_SECRET_ACCESS_KEY
bucket: "harp.gl"
skip_cleanup: true
local_dir: dist/s3_deploy
region: us-east-1
acl: public_read
cache_control: no-cache
on:
all_branches: true
condition: $TRAVIS_BRANCH =~ ^master|release$
after_success:
- codecov -f coverage/*.json