-
Notifications
You must be signed in to change notification settings - Fork 3
/
.gitlab-ci.yml
60 lines (54 loc) · 1.04 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
image: "registry.gitlab.com/smc/dockerfiles:font-builder"
stages:
- build
- test
- release
build-branch:
stage: build
before_script:
- apt-get update -y
- apt-get install -y make python3-pip
- pip3 install -r requirements.txt
script:
- make otf ttf webfonts
artifacts:
paths:
- build/
except:
- tags
build-tag:
stage: build
before_script:
- apt-get update -y
- apt-get install -y make python3-pip zip
- pip3 install -r requirements.txt
script:
- make ttf otf webfonts
- sh tools/artifacts.sh
artifacts:
expire_in: 1000 yrs
paths:
- build/
only:
- tags
test:
stage: test
before_script:
- apt-get update -y
- apt-get install -y make libharfbuzz-bin python3-pip
- pip3 install -r requirements.txt
script:
- make test
create-gitlab-release:
image: "ruby:3.2-alpine"
stage: release
script:
- gem install --no-document gitlab
- ruby release.rb
only:
- tags
release:
stage: release
trigger: smc/smc.org.in
only:
- tags