Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
SA3
SA3LI Trial
Commits
3d2bcdbc
Commit
3d2bcdbc
authored
Mar 06, 2020
by
canterburym
Browse files
Adds CD/CD fixtures
parent
15d555b1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
0 deletions
+27
-0
.gitlab-ci.yml
.gitlab-ci.yml
+13
-0
testing/check_asn1.py
testing/check_asn1.py
+14
-0
No files found.
.gitlab-ci.yml
0 → 100644
View file @
3d2bcdbc
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
View file @
3d2bcdbc
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"
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment