-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
75 lines (70 loc) · 1.67 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
language: node_js
sudo: false
node_js:
- '10'
install:
- yarn
cache:
timeout: 3600
yarn: true
directories:
- node_modules
- projects/ngx-ol/node_modules
- dist
jobs:
include:
- stage: check
name: next lib linting
script:
- yarn lint
- stage: build
name: next lib and demo
script:
- yarn build:lib
- cp -r dist/ngx-ol dist/ngx-ol-publish
- yarn build:demo --base-href "/ngx-ol/" --progress false
- stage: release
name: next lib version on github releases
if: tag =~ /^\d+.\d+.\d+-next.\d+$/
script: 'true' # skips tests
before_deploy:
- cd dist/ngx-ol-publish
- cp ../../projects/ngx-ol/CHANGELOG.md CHANGELOG.md
- npm pack
deploy:
- provider: releases
prerelease: true
api_key: $GITHUB_OAUTH_TOKEN
file_glob: true
file: '*.tgz'
skip_cleanup: true
on:
tags: true
- stage: release
name: next demo on github pages
if: tag =~ /^\d+.\d+.\d+-next.\d+$/
script: 'true' # skips tests
before_deploy:
- cd dist/demo-ngx-ol
deploy:
- provider: pages
local_dir: dist/demo-ngx-ol
skip_cleanup: true
github_token: $GITHUB_OAUTH_TOKEN
on:
tags: true
- stage: deploy
name: next lib version on npm
if: tag =~ /^\d+.\d+.\d+-next.\d+$/
script: 'true' # skips tests
before_deploy:
- cp projects/ngx-ol/CHANGELOG.md dist/ngx-ol-publish/CHANGELOG.md
- cd dist/ngx-ol-publish
deploy:
- provider: npm
email: $NPM_EMAIL
api_key: $NPM_TOKEN
tag: next
skip_cleanup: true
on:
tags: true