-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile.report
50 lines (46 loc) · 1.89 KB
/
Jenkinsfile.report
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
42
43
44
45
46
47
48
49
50
#!groovy
@Library('katsdpjenkins') _
env.BRANCH_NAME = 'imager-dev'
String workdir = 'git'
String testdir = "$workdir/tests"
katsdp.stagePrepare(python2: false, python3: true)
catchError {
stage('Generate report') {
katsdp.simpleNode(label: 'cuda', timeout: [time: 16, unit: 'HOURS']) {
deleteDir()
katsdp.unpackGit()
katsdp.unpackVenv()
katsdp.unpackKatsdpdockerbase()
/* The simulation script depends on a pre-release version of
* katpoint that is incompatible with katsdpimager. So put it
* in a separate venv.
*/
katsdp.virtualenv('venv-simulate', true) {
// GIT_LFS_SKIP_SMUDGE prevents git-lfs from checking out the large files.
// We don't need them to just install RASCIL.
sh('GIT_LFS_SKIP_SMUDGE=1 pip install -r git/simulation-requirements.txt')
dir(testdir) {
sh './simulate.py'
}
}
katsdp.virtualenv('venv') {
katsdp.installRequirements('git/report-requirements.txt')
sh 'pip install --no-deps -v ./git[report]'
sh 'pip check'
dir(testdir) {
sh './images_report.py --start-channel=2 --stop-channel=4 simple.ms report'
sh 'cp meerkat_antennas.txt lsm.txt simulate.py report/'
}
}
publishHTML(target: [reportName: 'Test images',
reportDir: "$testdir/report",
reportFiles: 'index.html',
keepAll: true])
/* The working directory tends to get rather big - clean it out to
* prevent bloating the container.
*/
deleteDir()
}
}
}
katsdp.mail('sdpdev+katsdpimager@ska.ac.za')