forked from IGNF/geoportal-extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
32 lines (32 loc) · 763 Bytes
/
Copy path.travis.yml
File metadata and controls
32 lines (32 loc) · 763 Bytes
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
language: node_js
node_js:
- "8"
stages:
- name: deploy
# require the branch name to be master
if: branch = master
before_script:
- npm run setup
script:
- npm run build:ol
- npm run build:leaflet
- npm run build:itowns
cache:
directories:
- node_modules
before_deploy:
- git clone https://github.com/IGNF/geoportal-extensions.git --branch gh-pages deploy/
- mkdir -p deploy/current/dist/
- cp -r dist/. deploy/current/dist
- mkdir -p deploy/current/jsdoc/
- cp -r jsdoc/. deploy/current/jsdoc
deploy:
provider: pages
skip-cleanup: true
github-token: $ghkey # Set in travis-ci.org dashboard, marked secure
local_dir: deploy/
keep-history: true
on:
branch: master
after_deploy:
- rm -rf deploy/