forked from firoorg/firo
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Jenkinsfile
56 lines (56 loc) · 1.59 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
pipeline {
agent {
docker {
image 'firoorg/firo-builder-depends:latest'
alwaysPull true
}
}
environment {
CCACHE_DIR = '/tmp/.ccache'
}
stages {
stage('Build dependencies') {
steps {
sh 'git clean -d -f -f -q -x'
dir('depends') {
sh 'make -j`nproc` HOST=x86_64-linux-gnu'
}
}
}
stage('Build') {
steps {
sh './autogen.sh'
sh './configure --prefix=`pwd`/depends/x86_64-linux-gnu'
sh 'make dist'
sh 'mkdir -p dist'
sh 'tar -C dist --strip-components=1 -xzf firo-*.tar.gz'
dir('dist') {
sh './configure --prefix=`pwd`/../depends/x86_64-linux-gnu --enable-tests --enable-crash-hooks'
sh 'make -j`nproc`'
}
}
}
stage('Test') {
steps {
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE'){
dir('dist') {
sh 'make check'
}
}
}
}
stage('Archive unit tests logs') {
steps {
archiveArtifacts artifacts: 'dist/src/test-suite.log',
allowEmptyArchive: true
}
}
stage('RPC Tests') {
steps {
dir('dist') {
sh 'qa/pull-tester/rpc-tests.py -extended'
}
}
}
}
}