/
.gitlab-ci.yml
86 lines (78 loc) · 1.66 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
cache:
untracked: true
key: "$CI_BUILD_REF_NAME"
paths:
- node_modules/
- bower_components/
- .yarn
stages:
# - build
- test
- deploy
# - clean
# build:
# stage: build
# image: nullvoxpopuli/ember-cli:2.14.1-2
# tags:
# - docker
#
# script:
# - yarn install && bower install
# eslint:
# stage: test
# image: node:6
# tags:
# - docker
# dependencies:
# - build
# script: npm run eslint-no-fix
test:
stage: test
image: nullvoxpopuli/ember-cli:2.14.1-2
tags:
- docker
# dependencies:
# - build
script:
- time ( yarn install && bower install )
- time npm run ci
artifacts:
paths:
- coverage/
production:
stage: deploy
image: nullvoxpopuli/ember-cli:2.14.1-2
tags:
- docker
dependencies:
- test
# - eslint
# - build
only:
- master
script:
- export DEPLOY_TARGET=production
- export REDISCLOUD_URL=$PRODUCTION_REDIS_URL
- export REDISCLOUD_PORT=$PRODUCTION_REDIS_PORT
- export REDISCLOUD_PASSWORD=$PRODUCTION_REDIS_PASSWORD
- export AWS_ACCESS_KEY_ID=$PRODUCTION_AWS_KEY_ID
- export AWS_SECRET_ACCESS_KEY=$PRODUCTION_AWS_SECRET_KEY
- export STRIPE_CLIENT_ID=$PRODUCTION_STRIPE_CLIENT_ID
- ember --version
- time DEPLOY_ENV=$DEPLOY_TARGET ember deploy $DEPLOY_TARGET --activate
# https://about.gitlab.com/2016/11/03/publish-code-coverage-report-with-gitlab-pages/
# pages:
# stage: deploy
# dependencies:
# - test
# #- "Build, Quality"
# # - codeclimate
# script:
# - mv coverage/ public/
# #- mv codeclimate.html public/
# artifacts:
# paths:
# - public
# expire_in: 30 days
# only:
# - develop