forked from homalg-project/CAP_project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
41 lines (35 loc) · 848 Bytes
/
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
pipeline {
agent any
triggers {
cron(env.BRANCH_NAME == 'master' ? '00 04 * * *' : '')
}
options {
checkoutToSubdirectory('pkg/CAP_project')
}
stages {
stage('test') {
steps {
dir('pkg') {
sh 'rm -rf homalg_project; git clone --depth 1 https://github.com/homalg-project/homalg_project.git'
}
dir('pkg') {
sh 'make -C "CAP_project/CAP" doc'
sh 'make -C "CAP_project/CompilerForCAP" doc'
sh 'make -C "CAP_project/MonoidalCategories" doc'
sh 'make -C "CAP_project/CartesianCategories" doc'
sh 'make -C "CAP_project/FreydCategoriesForCAP" doc'
sh 'make -C "homalg_project/homalg" doc'
sh 'make -C "homalg_project/Modules" doc'
}
dir('pkg/CAP_project') {
sh 'make --trace -j $(nproc) --output-sync ci-test'
}
}
}
}
post {
success {
cleanWs()
}
}
}