-
Notifications
You must be signed in to change notification settings - Fork 4
/
Jenkinsfile
49 lines (47 loc) · 986 Bytes
/
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
#!/usr/bin/env groovy
def init_git() {
sh "rm -rf *"
checkout scm
sh "git submodule update --recursive --init"
}
pipeline {
agent any
stages {
stage("Lint Check") {
agent {
docker {
image "dgllib/tfdlpack-ci-gpu:03302020"
args "--runtime nvidia"
}
}
steps {
init_git()
sh "bash tests/scripts/task_lint_cpp.sh"
sh "bash tests/scripts/task_lint_python.sh"
}
post {
always {
cleanWs disableDeferredWipeout: true, deleteDirs: true
}
}
}
stage("Build and Test") {
agent {
docker {
image "dgllib/tfdlpack-ci-gpu:03302020"
args "--runtime nvidia"
}
}
steps {
init_git()
sh "bash tests/scripts/task_build.sh"
sh "python -m pytest tests"
}
post {
always {
cleanWs disableDeferredWipeout: true, deleteDirs: true
}
}
}
}
}