Loading .gitlab-ci.yml 0 → 100644 +13 −0 Original line number Diff line number Diff line image: "python:3.7" before_script: - python3 --version - pip3 install -q asn1tools stages: - Check ASN.1 checkASN1: stage: Check ASN.1 script: - python3 testing/check_asn1.py No newline at end of file testing/check_asn1.py 0 → 100644 +14 −0 Original line number Diff line number Diff line from asn1tools import parse_files, ParseError import sys from glob import glob from pathlib import Path schemaFileGlob = glob("*.asn1") for schemaFile in schemaFileGlob: try: parse_files(schemaFile) except ParseError as ex: sys.exit("ASN1 parser error: " + str(ex)) print ("ASN1 schema OK") Loading
.gitlab-ci.yml 0 → 100644 +13 −0 Original line number Diff line number Diff line image: "python:3.7" before_script: - python3 --version - pip3 install -q asn1tools stages: - Check ASN.1 checkASN1: stage: Check ASN.1 script: - python3 testing/check_asn1.py No newline at end of file
testing/check_asn1.py 0 → 100644 +14 −0 Original line number Diff line number Diff line from asn1tools import parse_files, ParseError import sys from glob import glob from pathlib import Path schemaFileGlob = glob("*.asn1") for schemaFile in schemaFileGlob: try: parse_files(schemaFile) except ParseError as ex: sys.exit("ASN1 parser error: " + str(ex)) print ("ASN1 schema OK")