forked from scakemyer/plugin.video.quasar
-
Notifications
You must be signed in to change notification settings - Fork 158
/
.gitlab-ci.yml
61 lines (57 loc) · 1.69 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
image: python:latest
stages:
- test
- build
- release
test:
image: python:2.7-alpine
stage: test
before_script:
- pip install -r requirements.txt
script:
- flake8
- ./scripts/xgettext.sh
build:
stage: build
before_script:
- apk update
- apk add git make zip
- git submodule update --init --depth=22
script:
- make
only:
- master
release:
stage: release
before_script:
- apk update
- apk add git make lftp zip
- git submodule update --init --depth=22
script:
- make
- make zipfiles
after_script:
- |
lftp -c "open 'ftp://$FTP_USER:$FTP_PASS@$FTP_HOST'; \
cd plugin.video.elementum; \
mirror --reverse --verbose --exclude '.*' --exclude '.*/' --include-glob addon.xml; \
mkdir -p -f $CI_BUILD_TAG; \
cd $CI_BUILD_TAG; \
mirror --reverse --verbose --exclude '.*' --exclude '.*/' --include-glob *.zip; \
exit;"
artifacts:
paths:
- plugin.video.elementum-${CI_BUILD_TAG:1}.zip
- plugin.video.elementum-${CI_BUILD_TAG:1}.android_arm.zip
- plugin.video.elementum-${CI_BUILD_TAG:1}.android_x64.zip
- plugin.video.elementum-${CI_BUILD_TAG:1}.android_x86.zip
- plugin.video.elementum-${CI_BUILD_TAG:1}.darwin_x64.zip
- plugin.video.elementum-${CI_BUILD_TAG:1}.linux_arm.zip
- plugin.video.elementum-${CI_BUILD_TAG:1}.linux_armv7.zip
- plugin.video.elementum-${CI_BUILD_TAG:1}.linux_arm64.zip
- plugin.video.elementum-${CI_BUILD_TAG:1}.linux_x64.zip
- plugin.video.elementum-${CI_BUILD_TAG:1}.linux_x86.zip
- plugin.video.elementum-${CI_BUILD_TAG:1}.windows_x64.zip
- plugin.video.elementum-${CI_BUILD_TAG:1}.windows_x86.zip
only:
- tags