File: .gitlab-ci.yml

package info (click to toggle)
fonts-smc-chilanka 1.400-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 10,856 kB
  • sloc: makefile: 72; sh: 16; python: 16; xml: 6
file content (63 lines) | stat: -rw-r--r-- 1,026 bytes parent folder | download | duplicates (2)
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
image: "registry.gitlab.com/smc/dockerfiles:font-builder"

stages:
  - build
  - test
  - release
  - deploy

variables:
  WEBSITE_REPO_TRIGGER: "https://gitlab.com/api/v4/projects/125326/trigger/pipeline"
  WEBSITE_REPO_BRANCH: "master"

before_script:
  - pip3 install -r requirements.txt

build-branch:
  stage: build
  script:
    - make otf ttf webfonts
  artifacts:
    paths:
    - build/
  except:
    - tags


build-tag:
  stage: build
  script:
    - make otf ttf webfonts
    - sh tools/artifacts.sh
  artifacts:
    paths:
    - build/
  only:
    - tags

test:
  stage: test
  script:
    - make test

pages:
  stage: deploy
  script:
    - make webfonts
    - mkdir .public
    - cp -r build tests .public
    - mv .public public
  artifacts:
    paths:
    - public
  only:
    - master

release:
  image: "pstauffer/curl:latest"
  stage: release
  before_script: []
  script:
    - curl --request POST --form "token=$CI_JOB_TOKEN" --form ref=${WEBSITE_REPO_BRANCH} "${WEBSITE_REPO_TRIGGER}"
  only:
    - tags