forked from DethAriel/ng-recaptcha
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (40 loc) · 1.79 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
language: node_js
node_js:
- "14"
cache:
yarn: true
addons:
chrome: stable
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.22.5
- export PATH="$HOME/.yarn/bin:$PATH"
install:
- yarn install
before_script:
- yarn demo:file-gen
- yarn lib:build # things like "lint" depend on it, so we're including this in the "before_script" section
jobs:
include:
- name: "Static analysis"
script:
- yarn lint
- yarn prettier --check --ignore-unknown *
- name: "Build demo site"
script:
- yarn demo:build
deploy:
- provider: pages:git
token:
secure: "t2FzZ2mrON6ZrSy4ZguhRy8JkMq5GGIY8wx8ozD9CpthdJ0zWGktHvBi3g/a7Oh60TT16Bwu4q7yFH1nf3yyeIjxzodjJINDMRz/23MO215TkMufeyEV3tcvTWoq4SsbXneQBsjPNhM/z874jmVkjn5Ea0iiMR6wAPFNCFZxzhF/wbv/yBICc6Jt51zWzu0mth859HeYdk2VVf/qBXo//9Y4EGNuen1f2DI6lnsp/FDm7RX+pBoc1zFc9Tmk/RIISdlklKvE4QeGBqn17iOMfIQqY5RPlYHTFzrE8Cc5lkyOObio7rhNOfxrGKl5zNnscvjWpEsYAcVpEeSrT6uTI1VY2naPJnzGmCbBTkzrO7pNLTCmBe6iYV8X/UiknaVZldwrQIyj2IA4vb3dStu2NkF/aOD5/X56l3boVAShHgMVo2eh03JXH2hY6NPNXi7vr4ewP8RVH5PHjUStwo+KLOIlR8tcR9XJ2XCMXTlsQN1qgdc4h0giYLyILMcAh9AM5+ydsEx6KgyxFUV/m4uFKNkEMo0ktgOHqcjiCQtNJV9zpHglka+T4s+dqJ7hFSOOM1jy9XSLd1ANmjNkwDPUpjdsPvQj5qz9tV0tkm6XjFgHbQqGfHuVbNS72YjR9EWuya73DzBKvwXdxNNO8k4GQ2LtB38YxlBHMKWRyJOVV44="
edge: true # opt in to dpl v2
keep_history: false # since we'll be re-deploying with every commit to master, it makes sense to overwrite history
local_dir: dist/demo/ng-recaptcha
on:
branch: master
- name: "Run unit tests"
script:
- yarn ng test ng-recaptcha --code-coverage
- yarn coveralls < coverage/ng-recaptcha/lcov.info
- name: "Run e2e tests"
script:
- yarn ng e2e demo