forked from nextcloud/nextcloud-filelink
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
35 lines (32 loc) · 973 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
image: node:lts
cache:
key: node_modules
paths:
- node_modules/
lint:
stage: test
before_script:
- npm install --loglevel error web-ext
- npm install --loglevel error jshint
- git submodule update --init
script:
# web-ext fails if parameters of different run modes are set
- unset WEB_EXT_API_KEY
- unset WEB_EXT_API_SECRET
- npx web-ext lint
- npx jshint src
- '! grep -r --exclude-dir=photon-components-web TODO src'
sign:
stage: deploy
before_script:
- npm install --loglevel error web-ext
- git submodule update --init
script:
# web-ext sign always fails (as documented), so manipulate the return code
- 'npx web-ext sign --channel=listed --api-url-prefix=https://addons.thunderbird.net/api/v3 || true'
environment:
name: production
url: https://addons.thunderbird.net/de/thunderbird/addon/filelink-nextcloud-owncloud/
only:
# Only sign tagged releases
- /^v\d+\.\d+\.\d+$/