forked from retaxJS/retax-seed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
55 lines (48 loc) · 986 Bytes
/
.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
image: node:5.8
stages:
- test
- build
- deploy
# Wait for gitlab-ci-runner 0.9 to have global cache.
cache:
untracked: true
paths:
- node_modules/
before_script:
- node --version
- npm --version
test:
stage: test
script:
- npm install --loglevel http
- npm test
tags:
- node
bundle:
stage: test
script:
- npm install --loglevel http
- npm run build -- -- --release --isomorphic
tags:
- node
build:
stage: build
script:
- npm install request-json semver
- node ./webhooks/build-image.js
tags:
- node
only:
- /^([0-9]+\.{0,1}){1,3}(\-([a-z0-9]+\.{0,1})+){0,1}(\+(build\.{0,1}){0,1}([a-z0-9]+\.{0,1}){0,}){0,1}$/
- develop
deploy:
stage: deploy
script:
- npm install request-json semver
- node ./webhooks/deploy.js
allow_failure: true
tags:
- node
only:
- /^([0-9]+\.{0,1}){1,3}(\-([a-z0-9]+\.{0,1})+){0,1}(\+(build\.{0,1}){0,1}([a-z0-9]+\.{0,1}){0,}){0,1}$/
- develop