-
Notifications
You must be signed in to change notification settings - Fork 0
/
wercker.yml
42 lines (42 loc) · 1.35 KB
/
wercker.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
box: justinribeiro/lighthouse
build:
steps:
- script:
name: install yarn, git
code: |
apt-get update && apt-get install -y git && npm install -g yarn
- script:
name: set yarn cache
code: |
export YARN_CACHE=$WERCKER_CACHE_DIR/yarn
- script:
name: install dependencies
code: |
HOME=$YARN_CACHE yarn && yarn global add bower polymer-cli
- script:
name: bower install
code: |
bower install --allow-root --config.interactive=false
- script:
name: actual build
code: |
polymer build && cp -r ./data ./build/default/data
deploy:
steps:
- install-packages:
packages: git
- leipert/git-push:
branch: gh-pages
gh_oauth: $GITHUB_TOKEN
basedir: build/default
- script:
name: lighthouse audit
code: |
mkdir report && cp README.md report
headless_shell --no-sandbox --remote-debugging-port=9222 &>1 &
lighthouse https://H-Plus-Time.github.io/cxs-controlroom --output json --output-path=report/lighthouse_results.json
lighthouse https://H-Plus-Time.github.io/cxs-controlroom --output html --output-path=build/default/audit.html
- leipert/git-push:
branch: gh-pages
gh_oauth: $GITHUB_TOKEN
basedir: build/default