forked from cloudnc/ngx-sub-form
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
58 lines (50 loc) · 1.4 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
57
58
sudo: false
dist: bionic
language: node_js
node_js:
- '12'
# https://github.com/cypress-io/cypress/issues/4069
addons:
apt:
packages:
- libgconf-2-4
chrome: stable
cache:
directories:
- ~/.cache
- node_modules
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH="$HOME/.yarn/bin:$PATH"
install:
- yarn --frozen-lockfile --non-interactive --no-progress
script:
# lint
- yarn run demo:lint:check
- yarn run prettier:check
# tests
- yarn run readme:check
- yarn run lib:test:ci
# build
- yarn run lib:build:prod:view-engine
- yarn run demo:build:prod --progress=false --base-href "https://cloudnc.github.io/ngx-sub-form/"
# e2e tests
- sed -i 's/<base href="https:\/\/cloudnc.github.io\/ngx-sub-form\/">/<base href="\/">/g' dist/ngx-sub-form-demo/index.html
- nohup http-server-spa ./dist/ngx-sub-form-demo index.html 4765 &
- sleep 5
- yarn run demo:test:e2e:ci
- sed -i 's/<base href="\/">/<base href="https:\/\/cloudnc.github.io\/ngx-sub-form\/">/g' dist/ngx-sub-form-demo/index.html
# copy the readme so it can be accessible from npm
- cp README.md LICENSE dist/ngx-sub-form
deploy:
- provider: script
skip_cleanup: true
script: yarn semantic-release
on:
branch: master
- provider: pages
skip_cleanup: true
github_token: $GH_TOKEN
local_dir: dist/ngx-sub-form-demo
on:
branch: master