forked from elgatito/script.elementum.burst
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
47 lines (43 loc) · 1.16 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
image: alpine: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 --no-cache add git make zip
script:
- make
except:
- tags
release:
image: elgatito/burst-website:latest
stage: release
script:
- make
- ./scripts/changelog.sh > changelog.txt
- make surge
after_script:
- |
lftp -c "open 'ftp://$FTP_USER:$FTP_PASS@$FTP_HOST'; \
cd script.elementum.burst; \
mirror --reverse --verbose --exclude '.*' --exclude '.*/' --include-glob addon.xml \
--include-glob icon.png \
--include-glob fanart.jpg \
--include-glob changelog.txt \
--include-glob *.zip; \
exit;"
artifacts:
paths:
- script.elementum.burst-${CI_BUILD_TAG:1}.zip
only:
- tags