Isabelle_DOF/.ci/Jenkinsfile

28 lines
972 B
Plaintext
Raw Normal View History

2019-01-06 22:56:03 +00:00
pipeline {
agent any
stages {
stage('Build Docker') {
steps {
sh 'cp src/patches/thy_output.ML .ci/isabelle4isadof/'
2019-01-06 22:56:03 +00:00
sh 'docker build -t logicalhacking:isabelle4dof .ci/isabelle4isadof'
sh 'rm -f .ci/isabelle4isadof/thy_output.ML'
}
}
stage('Check Docker') {
when { changeset "src/patches/*" }
2019-01-06 22:56:03 +00:00
steps {
sh 'cp src/patches/thy_output.ML .ci/isabelle4isadof/'
2019-01-06 22:56:03 +00:00
sh 'docker build --no-cache -t logicalhacking:isabelle4dof .ci/isabelle4isadof'
sh 'rm -f .ci/isabelle4isadof/thy_output.ML'
}
}
stage('Build Isabelle/DOF') {
steps {
2019-07-20 21:30:31 +00:00
sh 'find -type d -name "output" -exec rm -rf {} \\; || true'
2019-01-06 23:12:23 +00:00
sh 'docker run -v $PWD:/DOF logicalhacking:isabelle4dof sh -c "cd /DOF && ./install && isabelle build -D ."'
2019-01-06 22:56:03 +00:00
}
}
}
}