forked from zxing-js/ngx-scanner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (37 loc) · 820 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
38
39
40
41
42
43
44
45
46
47
# Travis CI configuration file.
sudo: required
language: node_js
node_js:
- '12'
- '10'
addons:
chrome: stable
stages:
- test
- compile
- name: deploy
# require the branch name to be master (note for PRs this is the base branch name)
if: branch = master
cache: yarn
jobs:
include:
- stage: compile
script:
- yarn install --frozen-lockfile
- yarn run build
- yarn run build:demo
- stage: test
script:
- yarn run lint
- yarn run test
# - yarn run e2e
- stage: deploy-gh-pages
script:
- yarn run build:gh-pages # rebuild for gh-pages
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
local_dir: dist/gh-pages
on:
branch: master