Jenkinsfile 580 Bytes
Newer Older
Minjie Wang's avatar
Minjie Wang committed
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
pipeline {
    agent {
        docker {
            image 'pytorch/pytorch'
        }
    }
    stages {
        stage('SETUP') {
            steps {
                sh 'easy_install nose'
            }
        }
        stage('BUILD') {
            steps {
                dir('python') {
                    sh 'python setup.py install'
                }
            }
        }
        stage('TEST') {
            steps {
                sh 'nosetests tests -v --with-xunit'
            }
        }
    }
    post {
        always {
            junit '*.xml'
        }
    }
}