-
Notifications
You must be signed in to change notification settings - Fork 68
/
.travis.yml
56 lines (48 loc) · 1.43 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
cache:
yarn: true
language: node_js
os: linux
node_js:
- 12
addons:
chrome: stable
stages:
- name: test
if: branch != master
- name: build
if: branch = master
- name: deploy github pages
if: tag IS present
jobs:
include:
- stage: test
# 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 &
before_script:
- 'sudo chown root /opt/google/chrome/chrome-sandbox'
- 'sudo chmod 4755 /opt/google/chrome/chrome-sandbox'
script:
- yarn build
- yarn build:demo
- yarn lint:ngx-ui-switch
- yarn test:ci
- yarn e2e:ci
- stage: build
before_install:
- google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost:4200 &
before_script:
- 'sudo chown root /opt/google/chrome/chrome-sandbox'
- 'sudo chmod 4755 /opt/google/chrome/chrome-sandbox'
after_success:
- bash <(curl -s https://codecov.io/bash)
script:
- yarn build
- yarn build:demo
# TODO: needs $BUNDLEWATCH_GITHUB_TOKEN
- yarn bundlewatch
- yarn lint:ngx-ui-switch
- yarn test:ci
- yarn e2e:ci
- yarn typedoc