-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitlab-ci.yml
66 lines (60 loc) · 1.31 KB
/
.gitlab-ci.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
# This file is a template, and might need editing before it works on your project.
# Official framework image. Look for the different tagged releases at:
# https://hub.docker.com/r/library/node/tags/
image: node:8
# This folder is cached between builds
# http://docs.gitlab.com/ce/ci/yaml/README.html#cache
cache:
paths:
- modules/der-reader/node_modules/
- electron/node_modules/
stages:
- build
- deploy
build_web:
stage: build
script:
- cd modules/der-reader
- npm install
- npm run build
build_electron:
image: electronuserland/builder:wine
stage: build
script:
- cd modules/der-reader
- npm install
- npm run build
- cd ../../electron
- npm install
- npm run build
artifacts:
expire_in: 1 week
paths:
- electron/dist/
deploy_testing:
stage: deploy
script:
- cd modules/der-reader
- npm install
- npm run build
- npm run deploy-testing
environment:
name: testing
url: http://accessimap-lecteur-der-testing.surge.sh
deploy_staging:
stage: deploy
script:
- cd modules/der-reader
- npm install
- npm run build
- npm run deploy-staging
environment:
name: staging
url: http://accessimap-lecteur-der-staging.surge.sh
artifacts:
expire_in: 1 week
paths:
- dist/
when: manual
only:
- master