forked from thesps/conifer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
40 lines (40 loc) · 1.04 KB
/
Jenkinsfile
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
pipeline {
environment {
MGLS_LICENSE_FILE = credentials('msim_licence')
}
agent {
docker {
image 'conifer-test'
args '-v /tools:/tools -e MGLS_LICENSE_FILE=$MGLS_LICENSE_FILE'
}
}
options {
timeout(time: 1, unit: 'HOURS')
}
stages {
stage('pytest') {
steps {
dir(path: 'tests') {
sh '''#!/bin/bash --login
source /home/jenkins/miniconda/etc/profile.d/conda.sh
export PATH=$PATH:/tools/modeltech/bin
export LIBRARY_PATH=$LIBRARY_PATH:/usr/lib/x86_64-linux-gnu
source /tools/Xilinx/Vivado/2019.2/settings64.sh
source /home/jenkins/.bashrc
conda activate conifer-test
pip install -U ../ --user
pytest --cov-report term --cov=conifer --junitxml='reports/report.xml'
status=$?
pip uninstall conifer -y
rm -r prj*
exit $status'''
}
}
}
}
post {
always {
junit '**/reports/*.xml'
}
}
}