-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
66 lines (57 loc) · 1.38 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
# Official framework image. Look for the different tagged releases at:
# https://hub.docker.com/r/library/node/tags/
#image: node:8-alpine
image: erikwegner/alpine-node-chromium:10-alpine
# This folder is cached between builds
# http://docs.gitlab.com/ce/ci/yaml/README.html#cache
cache:
paths:
- node_modules/
stages:
- prepare
- test
- package
- betaupload
before_script:
- node -v
- npm -v
- npm install -g yarn
install:
stage: prepare
script: yarn install
firefox-package:
only:
refs:
- master
stage: package
script: yarn run sign:firefox
artifacts:
paths:
- release/firefox/web-ext-artifacts
lint:
stage: test
script: yarn run lint
mocha:
stage: test
script: yarn run test:mocha
karma:
stage: test
script: yarn run test:karma
betaupload:
only:
refs:
- master
stage: betaupload
artifacts:
paths:
- release/firefox/web-ext-artifacts
script:
- mkdir -p ~/.ssh
- which ssh-agent || ( apk --update add openssh-client )
- eval $(ssh-agent -s)
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
- echo "$STAGING_PRIVATE_KEY" | ssh-add -
- scp release/firefox/web-ext-artifacts/*.xpi $DEPLOY_USER@$DEPLOY_HOST:$DEPLOY_PATH
- ssh-add -D
- echo "$MANIFEST_PRIVATE_KEY" | ssh-add -
- ssh -l $DEPLOY_USER $DEPLOY_HOST $DEPLOY_PATH/create-manifest.py