forked from linagora/linagora.esn.emoticon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
52 lines (48 loc) · 1021 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
image: linagora/node-test-base:8
stages:
- test
- deploy_dev
- release
release:
stage: release
tags:
- shell
- online.net
only:
- triggers
script:
- . ~/.nvm/nvm.sh && nvm use 8
- if [ -z "${VERSION}" ]; then exit 1; fi
- npm i
- echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}'>.npmrc
- grunt release:${VERSION}
- git push origin "${VERSION}"
test:
stage: test
tags:
- docker
script:
- npm i
- bower i --allow-root
- grunt --chunk=1 --ci
deploy_dev:
stage: deploy_dev
tags:
- dev.open-paas.org
- deployment
environment:
name: dev
url: https://dev.open-paas.org
only:
- master@linagora/lgs/openpaas/linagora.esn.emoticon
script:
- cd /srv/${CI_PROJECT_NAME}
- git fetch --all
- git checkout ${CI_COMMIT_SHA}
- npm install --production
- npm update --production
- npm prune
- bower install --production
- bower prune
- git checkout -- .
- sudo /etc/init.d/rse.dev restart