This repository has been archived by the owner on Jan 17, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.gitlab-ci.yml
51 lines (44 loc) · 1.68 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
image: node:9.11
stages:
- lint
- test
- build
- package
# cache:
# paths:
# - node_modules
before_script:
- echo "unsafe-perm=true" > ~/.npmrc
- npm install
lint sources:
stage: lint
script:
- npm run lint
test sources:
stage: test
script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
- npm run test:ci
- ./cc-test-reporter after-build --exit-code $?
build app:
stage: build
script:
- npm run ng -- build --prod --progress=false
package linux app:
only:
- tags
stage: package
artifacts:
name: "$CI_COMMIT_REF_NAME"
paths:
- out/ngx-ssb-client-x86_64.AppImage
- out/ngx-ssb-client-amd64.snap
script:
- npm run electron:linux
- wget https://github.com/aktau/github-release/releases/download/v0.7.2/linux-amd64-github-release.tar.bz2
- echo '16515e89c8419075c7c88df5cdaac63aa798f539a33107809adbde76e002ac0732f4732159d093e287878b956c650e90cd0fa94d4836ebcf7cd19599e1d238c3 linux-amd64-github-release.tar.bz2' | sha512sum -c -
- tar xf linux-amd64-github-release.tar.bz2 --strip-components 3 bin/linux/amd64/github-release
- github-release upload --user datenknoten --repo ngx-ssb-client --tag $CI_COMMIT_REF_SLUG --name "ngx-ssb-client-amd64.snap" --file out/ngx-ssb-client-amd64.snap
- github-release upload --user datenknoten --repo ngx-ssb-client --tag $CI_COMMIT_REF_SLUG --name "ngx-ssb-client-x86_64.AppImage" --file out/ngx-ssb-client-x86_64.AppImage