forked from zeldaret/oot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
68 lines (67 loc) · 1.81 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
57
58
59
60
61
62
63
64
65
66
67
68
pipeline {
agent {
label 'oot'
}
stages {
stage('Check for unused asm') {
steps {
sh './tools/find_unused_asm.sh'
}
}
stage('Setup') {
steps {
sh 'cp /usr/local/etc/roms/baserom_oot.z64 baserom_original.z64'
sh 'make -j setup'
}
}
stage('Build (qemu-irix)') {
when {
branch 'master'
}
steps {
sh 'ORIG_COMPILER=1 make -j'
}
}
stage('Build') {
when {
not {
branch 'master'
}
}
steps {
sh 'make -j'
}
}
stage('Report Progress') {
when {
branch 'master'
}
steps {
sh 'mkdir reports'
sh 'python3 progress.py csv >> reports/progress.csv'
sh 'python3 progress.py csv -m >> reports/progress_matching.csv'
sh 'python3 progress.py shield-json > reports/progress_shield.json'
stash includes: 'reports/*', name: 'reports'
}
}
stage('Update Progress') {
when {
branch 'master'
}
agent {
label 'master'
}
steps {
unstash 'reports'
sh 'cat reports/progress.csv >> /var/www/html/reports/progress.csv'
sh 'cat reports/progress_matching.csv >> /var/www/html/reports/progress_matching.csv'
sh 'cat reports/progress_shield.json > /var/www/html/reports/progress_shield.json'
}
}
}
post {
always {
cleanWs()
}
}
}