forked from siyandong/iGibson
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
86 lines (78 loc) · 3.34 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
pipeline {
agent {
docker {
image 'gibsonchallenge/gibsonv2:jenkins'
args '--runtime=nvidia -u root:root -v ${WORKSPACE}/../ig_dataset:${WORKSPACE}/gibson2/data/ig_dataset'
}
}
stages {
stage('Build') {
steps {
sh 'nvidia-smi'
sh 'pwd'
sh 'printenv'
sh 'pip install -e .'
}
}
stage('Build Docs') {
steps {
sh 'sphinx-apidoc -o docs/apidoc gibson2 gibson2/external gibson2/utils/data_utils/'
sh 'sphinx-build -b html docs _sites'
}
}
stage('Test') {
steps {
sh 'mkdir result'
sh 'pytest gibson2/test/test_binding.py --junitxml=test_result/test_binding.py.xml'
sh 'pytest gibson2/test/test_render.py --junitxml=test_result/test_render.py.xml'
sh 'pytest gibson2/test/test_pbr.py --junitxml=test_result/test_pbr.py.xml'
sh 'pytest gibson2/test/test_object.py --junitxml=test_result/test_object.py.xml'
sh 'pytest gibson2/test/test_simulator.py --junitxml=test_result/test_simulator.py.xml'
sh 'pytest gibson2/test/test_igibson_env.py --junitxml=test_result/test_igibson_env.py.xml'
sh 'pytest gibson2/test/test_scene_importing.py --junitxml=test_result/test_scene_importing.py.xml'
sh 'pytest gibson2/test/test_robot.py --junitxml=test_result/test_robot.py.xml'
sh 'pytest gibson2/test/test_igsdf_scene_importing.py --junitxml=test_result/test_igsdf_scene_importing.py.xml'
sh 'pytest gibson2/test/test_sensors.py --junitxml=test_result/test_sensors.py.xml'
sh 'pytest gibson2/test/test_motion_planning.py --junitxml=test_result/test_motion_planning.py.xml'
}
}
stage('Benchmark') {
steps {
sh 'python gibson2/test/benchmark/benchmark_static_scene.py'
sh 'python gibson2/test/benchmark/benchmark_interactive_scene.py'
}
}
}
post {
always {
junit 'test_result/*.xml'
archiveArtifacts artifacts: 'test_result/*.xml', fingerprint: true
archiveArtifacts artifacts: '*.pdf'
archiveArtifacts artifacts: '*.png'
publishHTML (target: [
allowMissing: true,
alwaysLinkToLastBuild: false,
keepAll: true,
reportDir: '_sites',
reportFiles: 'index.html',
includes: '**/*',
reportName: "iGibson docs"
])
cleanWs()
}
failure {
script {
// Send an email only if the build status has changed from green/unstable to red
emailext subject: '$DEFAULT_SUBJECT',
body: '$DEFAULT_CONTENT',
recipientProviders: [
[$class: 'CulpritsRecipientProvider'],
[$class: 'DevelopersRecipientProvider'],
[$class: 'RequesterRecipientProvider']
],
replyTo: '$DEFAULT_REPLYTO',
to: '$DEFAULT_RECIPIENTS'
}
}
}
}