forked from AllYarnsAreBeautiful/ayab-desktop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
86 lines (79 loc) · 1.46 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
variables:
GIT_STRATEGY: clone
GIT_SUBMODULE_STRATEGY: recursive
GIT_DEPTH: "300"
GIT_SSL_NO_VERIFY: "true"
S3_BUCKET_NAME: "ayab-debug"
stages:
- build
- deploy
cache:
paths:
- /Library/Caches/Homebrew
- ~/.cache/pip
before_script:
- TAG=$(git describe --tags | sed 's/-/.post/' | cut -f1 -d'-')
- echo $TAG > src/main/resources/base/ayab/package_version
- sed -i.tmp s/PACKAGE_VERSION/$TAG/ src/build/settings/base.json
- cat src/main/resources/base/ayab/package_version
build:osx:
tags:
- osx
- virtualbox
stage: build
artifacts:
when: always
paths:
- dist/release/
script:
- mac-build/build.sh
after_script:
- ls -lisa dist/release
only:
- tags
build:linux:
image: python:3.5
tags:
- linux
- docker
stage: build
artifacts:
when: always
paths:
- dist/release/
script:
- linux-build/build.sh
after_script:
- ls -lisa dist/release
only:
- tags
build:win10:
tags:
- win10
- virtualbox
stage: build
artifacts:
when: always
paths:
- dist/release/
script:
- windows-build/build.sh 10
after_script:
- ls -lisa dist/release
only:
- tags
#deploy:github:
# tags:
# - linux
# - docker
# stage: deploy
# environment:
# name: github
# url: https://github.com/AllYarnsAreBeautiful/ayab-desktop/releases
# image: python:latest
# script:
# - cd dist/release
# - ls
# - /tools/upload.sh $CI_COMMIT_TAG master
# only:
# - tags