forked from webcat12345/ngx-ui-switch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
42 lines (36 loc) · 941 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
dist: trusty
sudo: false
cache:
yarn: true
language: node_js
node_js:
- 8
addons:
chrome: stable
# https://docs.travis-ci.com/user/gui-and-headless-browsers/#Using-the-Chrome-addon-in-the-headless-mode
before_install:
- # start your web application and listen on `localhost`
- google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost:4200 &
- yarn global add greenkeeper-lockfile@1
before_script:
- "sudo chown root /opt/google/chrome/chrome-sandbox"
- "sudo chmod 4755 /opt/google/chrome/chrome-sandbox"
- greenkeeper-lockfile-update
script:
- yarn build
- yarn build:demo
- yarn bundlesize
- yarn lint
- yarn test:ci
- yarn e2e:ci
- yarn typedoc
after_success:
- bash <(curl -s https://codecov.io/bash)
- yarn ghpages
after_script: greenkeeper-lockfile-upload
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
on:
branch: master