forked from quentinlampin/ngx-openlayers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
53 lines (50 loc) · 946 Bytes
/
.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
language: node_js
sudo: false
node_js:
- '6'
env:
- NPM_CONFIG_LOGLEVEL='warn'
jobs:
include:
- stage: build library
before_script:
- rm -rf lib
script:
- npm pack
- mkdir -p lib
- cp *.tgz lib/
cache:
directories:
- lib
- stage: build demo
before_install:
- cd example
install:
- npm i
script:
- npm un -S ngx-openlayers
- cp -r ../lib .
- npm i -S lib/*.tgz
- npm run build
cache:
directories:
- lib
- stage: deploy library release
script: ignore
deploy:
- provider: releases
api_key: $GITHUB_OAUTH_TOKEN
file_glob: true
file: lib/*
skip_cleanup: true
on:
tags: true
- stage: deploy demo pages
script: ignore
deploy:
- provider: pages
local_dir: dist
skip_cleanup: true
github_token: $GITHUB_OAUTH_TOKEN
on:
tags: true