-
Notifications
You must be signed in to change notification settings - Fork 20
/
.gitlab-ci.yml
42 lines (37 loc) · 1.04 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
stages:
- linter
- simulation
before_script:
- source build_env.sh
- git config credential.https://git.psi.ch.password ${CI_JOB_TOKEN}
- git force-clone https://git.psi.ch/GFA/Libraries/Firmware/TCL/PsiSim ../../../Firmware/TCL/PsiSim --depth=1 || true
- git force-clone https://git.psi.ch/GFA/Libraries/Firmware/VHDL/psi_tb ../../../Firmware/VHDL/psi_tb --depth=1 || true
code-style:
stage: linter
tags:
- dsp
allow_failure: true
script:
- echo "...tbd..."
modelsim:
stage: simulation
tags:
- dsp
#rules:
# - if: $CI_COMMIT_BRANCH == "master"
script:
- tool modelsim_2020.4
- cd sim
- vsim -c -do ci.do -logfile Transcript.transcript
- grep -Fq "SIMULATIONS COMPLETED SUCCESSFULLY" Transcript.transcript
- (! grep -Fq "###ERROR###" Transcript.transcript)
ghdl:
stage: simulation
tags:
- dsp
script:
- tool ghdl_3.0.0
- cd sim
- tclsh runGhdl.tcl 2>&1 | tee ghdl.log
- grep -Fq "SIMULATIONS COMPLETED SUCCESSFULLY" ghdl.log
- (! grep -Fq "###ERROR###" ghdl.log)