forked from angular-extensions/elements
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
41 lines (41 loc) · 787 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
language: node_js
version: 1.0
node_js:
- '16'
sudo: required
dist: trusty
addons:
chrome: stable
cache:
directories:
- $HOME/.npm
before_install:
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
install:
- npm install codecov -g
- npm ci --ignore-scripts
script:
# run build script specified in package.json
- npm run ci
after_success:
- codecov
before_deploy:
- cd dist/elements
after_deploy:
- cd ../../
deploy:
- provider: npm
edge: true
email: [email protected]
api_key: $NPM_TOKEN
skip_cleanup: true
on:
tags: true
- provider: pages
name: tomastrajan
email: [email protected]
local_dir: dist/elements-demo
skip_cleanup: true
github_token: $GH_TOKEN