DEVEL: First open source release
This commit is contained in:
27
scripts/ciFlow.py
Normal file
27
scripts/ciFlow.py
Normal file
@ -0,0 +1,27 @@
|
||||
##############################################################################
|
||||
# Copyright (c) 2019 by Paul Scherrer Institute, Switzerland
|
||||
# All rights reserved.
|
||||
# Authors: Oliver Bruendler
|
||||
##############################################################################
|
||||
|
||||
import os
|
||||
|
||||
THIS_DIR = os.path.dirname(os.path.abspath(__file__))
|
||||
|
||||
os.chdir(THIS_DIR + "/../sim")
|
||||
|
||||
os.system("vsim -batch -do ci.do -logfile Transcript.transcript")
|
||||
|
||||
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)
|
16
scripts/dependencies.py
Normal file
16
scripts/dependencies.py
Normal file
@ -0,0 +1,16 @@
|
||||
##############################################################################
|
||||
# Copyright (c) 2019 by Paul Scherrer Institute, Switzerland
|
||||
# All rights reserved.
|
||||
# Authors: Oliver Bruendler
|
||||
##############################################################################
|
||||
|
||||
from PsiFpgaLibDependencies import *
|
||||
import sys
|
||||
import os
|
||||
|
||||
THIS_DIR = os.path.dirname(os.path.abspath(__file__))
|
||||
|
||||
dependencies = Parse.FromReadme(THIS_DIR + "/../README.md")
|
||||
repo = os.path.abspath(THIS_DIR + "/..")
|
||||
|
||||
Actions.ExecMain(repo, dependencies)
|
Reference in New Issue
Block a user