Loading .gitlab-ci.mkdeleted 100644 → 0 +0 −42 Original line number Diff line number Diff line ASN1_SRC := $(wildcard asn/*.asn asn/cam/*.asn asn/cdd/*.asn) ASN1_SRC_VALIDATE := \ iso/iso19091_2018.asn \ iso/iso24534-3_1_2015.asn \ iso/iso24534-3_2_2015.asn \ iso/ISO14816_AVIAEINumberingAndDataStructures.asn ASN1_PDU := CPM ASN1_KNOWN := DATE #ASN1CDIR ?= $(USERPROFILE)/Work/asn1c-fillabs ifneq (,$(ASN1CDIR)) ASN1C := $(ASN1CDIR)/asn1c/.libs/asn1c -S $(ASN1CDIR)/skeletons else ASN1C := asn1c endif .PHONY: validate doc build validate: iso build doc: docs python3 asn2md.py docs $(ASN1_SRC) iso docs: mkdir -p $@ build: $(ASN1_SRC) $(ASN1_SRC_VALIDATE) $(ASN1C) -E -F -fcompound-names $(addprefix -fknown-extern-type=,$(ASN1_KNOWN)) $(addprefix -pdu=,$(ASN1_PDU)) $^ >/dev/null iso/iso19091_2018.asn: curl -o $@ 'https://standards.iso.org/iso/ts/19091/ed-2/en/ISO-TS-19091-addgrp-C-2018.asn' iso/iso24534-3_1_2015.asn: curl -o $@ 'https://standards.iso.org/iso/24534/-3/ISO%2024534-3%20ASN.1%20repository/ISO24534-3_ElectronicRegistrationIdentificationVehicleDataModule_ForBallot.asn' iso/iso24534-3_2_2015.asn: curl -o $@ 'https://standards.iso.org/iso/24534/-3/ISO%2024534-3%20ASN.1%20repository/ISO24534-3_ElectronicRegistrationIdentificationEfcVehicleDataModule_ForBallot.asn' iso/ISO14816_AVIAEINumberingAndDataStructures.asn: curl -o $@ 'https://standards.iso.org/iso/14816/ISO14816%20ASN.1%20repository/ISO14816_AVIAEINumberingAndDataStructures.asn' No newline at end of file .gitlab-ci.yml +8 −28 Original line number Diff line number Diff line variables: GIT_SUBMODULE_STRATEGY: normal include: - project: 'forge-tools/asn2md' file: '/gitlab-ci/base.yml' image: danya25/asn1c:0.0.5 variables: ASN1_SRC: 'asn/*.asn asn/cam/*.asn asn/cdd/*.asn' validate: stage: test script: make -f .gitlab-ci.mk validate cache: paths: - iso/* only: changes: - "asn/*.asn" extends: .validate documentation: stage: deploy script: - curl -o asn2md.py --header "PRIVATE-TOKEN:$CI_DOC_TOKEN" "https://forge.etsi.org/rep/api/v4/projects/592/repository/files/asn2md.py/raw?ref=v1.1.1" - make -f .gitlab-ci.mk doc - > if [ -z "$(git status --untracked-files=no --porcelain)" ]; then echo "No changes found"; else git add docs/*.md && git commit -m "Documentation update" && git remote rm origin && git remote add origin https://oauth2:$CI_DOC_TOKEN@forge.etsi.org/rep/$CI_PROJECT_PATH.git && git push origin HEAD:$CI_COMMIT_REF_NAME; fi only: changes: - "asn/*.asn" extends: .documentation Loading
.gitlab-ci.mkdeleted 100644 → 0 +0 −42 Original line number Diff line number Diff line ASN1_SRC := $(wildcard asn/*.asn asn/cam/*.asn asn/cdd/*.asn) ASN1_SRC_VALIDATE := \ iso/iso19091_2018.asn \ iso/iso24534-3_1_2015.asn \ iso/iso24534-3_2_2015.asn \ iso/ISO14816_AVIAEINumberingAndDataStructures.asn ASN1_PDU := CPM ASN1_KNOWN := DATE #ASN1CDIR ?= $(USERPROFILE)/Work/asn1c-fillabs ifneq (,$(ASN1CDIR)) ASN1C := $(ASN1CDIR)/asn1c/.libs/asn1c -S $(ASN1CDIR)/skeletons else ASN1C := asn1c endif .PHONY: validate doc build validate: iso build doc: docs python3 asn2md.py docs $(ASN1_SRC) iso docs: mkdir -p $@ build: $(ASN1_SRC) $(ASN1_SRC_VALIDATE) $(ASN1C) -E -F -fcompound-names $(addprefix -fknown-extern-type=,$(ASN1_KNOWN)) $(addprefix -pdu=,$(ASN1_PDU)) $^ >/dev/null iso/iso19091_2018.asn: curl -o $@ 'https://standards.iso.org/iso/ts/19091/ed-2/en/ISO-TS-19091-addgrp-C-2018.asn' iso/iso24534-3_1_2015.asn: curl -o $@ 'https://standards.iso.org/iso/24534/-3/ISO%2024534-3%20ASN.1%20repository/ISO24534-3_ElectronicRegistrationIdentificationVehicleDataModule_ForBallot.asn' iso/iso24534-3_2_2015.asn: curl -o $@ 'https://standards.iso.org/iso/24534/-3/ISO%2024534-3%20ASN.1%20repository/ISO24534-3_ElectronicRegistrationIdentificationEfcVehicleDataModule_ForBallot.asn' iso/ISO14816_AVIAEINumberingAndDataStructures.asn: curl -o $@ 'https://standards.iso.org/iso/14816/ISO14816%20ASN.1%20repository/ISO14816_AVIAEINumberingAndDataStructures.asn' No newline at end of file
.gitlab-ci.yml +8 −28 Original line number Diff line number Diff line variables: GIT_SUBMODULE_STRATEGY: normal include: - project: 'forge-tools/asn2md' file: '/gitlab-ci/base.yml' image: danya25/asn1c:0.0.5 variables: ASN1_SRC: 'asn/*.asn asn/cam/*.asn asn/cdd/*.asn' validate: stage: test script: make -f .gitlab-ci.mk validate cache: paths: - iso/* only: changes: - "asn/*.asn" extends: .validate documentation: stage: deploy script: - curl -o asn2md.py --header "PRIVATE-TOKEN:$CI_DOC_TOKEN" "https://forge.etsi.org/rep/api/v4/projects/592/repository/files/asn2md.py/raw?ref=v1.1.1" - make -f .gitlab-ci.mk doc - > if [ -z "$(git status --untracked-files=no --porcelain)" ]; then echo "No changes found"; else git add docs/*.md && git commit -m "Documentation update" && git remote rm origin && git remote add origin https://oauth2:$CI_DOC_TOKEN@forge.etsi.org/rep/$CI_PROJECT_PATH.git && git push origin HEAD:$CI_COMMIT_REF_NAME; fi only: changes: - "asn/*.asn" extends: .documentation