summaryrefslogtreecommitdiff
path: root/Jenkinsfile
blob: 98b3cf914d9f948da46c309b5423b1c35404eb4a (about) (plain)
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
@Library('jenkins-wi-shared-library') _

pipeline {
    agent {
        label 'guixsd'
    }
    stages {
        stage('fetch') {
            steps {
                dir('/home/oleg/src/guix') {
                    sendNotifications 'STARTED'
                    sh 'git fetch origin'
                }
            }
        }
        stage('rebase') {
            steps {
                dir('/home/oleg/src/guix') {
                    sh 'git rebase origin/master'
                }
            }
        }
        stage('bootstrap') {
            steps {
                dir('/home/oleg/src/guix') {
                    sh 'guix environment --pure guix --ad-hoc help2man guile-sqlite3 guile-gcrypt -- ./bootstrap'
                }
            }
        }
        stage('configure') {
            steps {
                dir('/home/oleg/src/guix') {
                    sh 'guix environment --pure guix --ad-hoc help2man guile-sqlite3 guile-gcrypt -- ./configure --localstatedir=/var --prefix='
                }
            }
        }
        stage('make') {
            steps {
                dir('/home/oleg/src/guix') {
                    sh 'guix environment --pure guix --ad-hoc help2man guile-sqlite3 guile-gcrypt -- make'
                }
            }
        }
        stage('test') {
            steps {
                dir('/home/oleg/src/guix') {
                    sh 'make check'
                }
            }
        }
    }
    post {
        always {
            sendNotifications currentBuild.result
        }
    }
}