File: Jenkinsfile

package info (click to toggle)
python-glad 2.0.2-0.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 6,360 kB
  • sloc: xml: 76,627; ansic: 5,843; python: 2,413; sh: 423; cpp: 248; makefile: 4
file content (32 lines) | stat: -rw-r--r-- 1,049 bytes parent folder | download
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'
                    }
                }
            }
        }
    }
}