forked from Dav1dde/glad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
32 lines (32 loc) · 1.02 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
pipeline {
agent any
stages {
stage('Setup') {
steps {
sh 'git reset --hard HEAD'
sh 'git clean -xffd'
}
}
stage('Test') {
parallel {
stage('Unit') {
steps {
withPythonEnv('python2') {
sh 'python -m pip install -r requirements.txt'
sh 'python -m pip install -r requirements-test.txt'
sh 'python -m nose --with-xunit || true'
junit 'nosetests.xml'
}
}
}
stage('Integration') {
steps {
sh 'docker pull dav1d/glad-test'
sh 'docker run --rm -t -v "$WORKSPACE:/mnt" --user "$(id -u):$(id -g)" dav1d/glad-test || true'
junit 'test-report.xml'
}
}
}
}
}
}