DEVEL: Added continuous integration files

This commit is contained in:
Oliver Bruendler
2019-06-21 07:26:53 +02:00
parent a576b2a7c9
commit 841236f53d
3 changed files with 29 additions and 0 deletions

19
ci/ciFlow.py Normal file
View File

@ -0,0 +1,19 @@
import os
os.chdir("../sim")
os.system("vsim -c -do ci.do")
with open("Transcript.transcript") as f:
content = f.read()
#Expected Errors
if "###ERROR###" in content:
exit(-1)
#Unexpected Errors
if "SIMULATIONS COMPLETED SUCCESSFULLY" not in content:
exit(-2)
#Success
exit(0)

1
sim/.gitignore vendored
View File

@ -12,3 +12,4 @@
#Ignore transcripts
*.transcript
*.wlf
transcript

9
sim/ci.do Normal file
View File

@ -0,0 +1,9 @@
##############################################################################
# Copyright (c) 2018 by Paul Scherrer Institute, Switzerland
# All rights reserved.
# Authors: Oliver Bruendler
##############################################################################
onerror {exit}
source run.tcl
quit