[smc-discuss] [Git][smc/fonts-all][master] Make fonts automation more DRY

Balasankar C gitlab at mg.gitlab.com
Sat Jun 23 22:17:39 PDT 2018


Balasankar C pushed to branch master at SMC / fonts-all


Commits:
fc268ff7 by Balasankar "Balu" C at 2018-06-24T05:17:33Z
Make fonts automation more DRY

- - - - -


1 changed file:

- fonts-gitlab-ci.yml


Changes:

=====================================
fonts-gitlab-ci.yml
=====================================
@@ -1,15 +1,18 @@
 image: "debian:stretch"
 
+variables:
+  FONTS_REPO_URL: "https://gitlab.com/api/v4/projects/125326/trigger/pipeline"
+
 before_script:
   - apt-get update -y
-  - apt-get install -y make fonttools python-fontforge python-brotli
+  - apt-get install -y make fonttools python-fontforge python-brotli curl
 
 stages:
   - build
   - test
   - release
 
-build-branch:
+fonts-build:
   stage: build
   script:
     - make ttf webfonts
@@ -19,31 +22,25 @@ build-branch:
   except:
     - tags
 
-build-tag:
-  stage: build
-  script:
-    - make ttf webfonts
-    - sh tools/artifacts.sh
-  artifacts:
-    paths:
-    - build/
-  only:
-    - tags
-
-test:
+fonts-test:
   stage: test
   before_script:
     - apt-get update -y
     - apt-get install -y make libharfbuzz-bin
   script:
     - make test
+  dependencies:
+    - fonts-build
 
-release:
-  image: "alpine:latest"
+fonts-release:
   stage: release
-  before_script:
-    - apk --no-cache add curl
   script:
-    - curl --request POST --form "token=$CI_JOB_TOKEN" --form ref=master https://gitlab.com/api/v4/projects/125326/trigger/pipeline
+    - bash tools/artifacts.sh
+    - curl --request POST --form "token=$CI_JOB_TOKEN" --form ref=master "${FONTS_REPO_URL}"
   only:
     - tags
+  dependencies:
+    - fonts-build
+  artifacts:
+    paths:
+      - build/



View it on GitLab: https://gitlab.com/smc/fonts-all/commit/fc268ff7bc0b3aa270910b402cb650f1636aa121

-- 
View it on GitLab: https://gitlab.com/smc/fonts-all/commit/fc268ff7bc0b3aa270910b402cb650f1636aa121
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.smc.org.in/pipermail/discuss-smc.org.in/attachments/20180624/a854e088/attachment-0002.html>


More information about the discuss mailing list