This repository has been archived by the owner on Mar 8, 2023. It is now read-only.
/
.travis.yml
67 lines (62 loc) · 1.62 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
66
language: node_js
dist: bionic
node_js:
- "10"
cache:
yarn: true
addons:
chrome: stable
firefox: latest
branches:
only:
- master
- release
# upgrade yarn to a more recent version
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.13.0
- export PATH="$HOME/.yarn/bin:$PATH"
jobs:
include:
- name: "Test"
script: |
set -ex
yarn run tslint
yarn run prettier
yarn run build-tests
yarn run test
yarn test-browser --headless-firefox
yarn test-browser --headless-chrome
#./scripts/test-npm-packages.sh
#git status # just in case test-npm-packages leaves some garbage
- name: "Build & Deploy"
script: |
set -ex
yarn run build
yarn run typedoc
before_deploy: ./scripts/prepare_doc_deploy.sh
deploy:
- provider: script
script: ./scripts/publish-packages.sh
skip_cleanup: true
on:
branch: release
- provider: pages
skip_cleanup: true
committer-from-gh: true
keep-history: false
local-dir: dist/gh_deploy
github-token: $GITHUB_TOKEN
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
upload-dir: docs
region: us-east-1
acl: public_read
on:
all_branches: true
condition: $TRAVIS_BRANCH =~ ^master|release$