Commit c4c1dac6 authored by Dominik Charousset's avatar Dominik Charousset

Cleanup legacy build scaffold for the TeX manual

(cherry picked from commit e1f57de6)
parent f664a607
...@@ -152,54 +152,35 @@ pipeline { ...@@ -152,54 +152,35 @@ pipeline {
buildParallel(config, PrettyJobBaseName) buildParallel(config, PrettyJobBaseName)
} }
} }
stage('Documentation') { // TODO: generate PDF from reStructuredText
agent { label 'pandoc' } // stage('Documentation') {
steps { // agent { label 'pandoc' }
deleteDir() // steps {
unstash('sources') // deleteDir()
dir('sources') { // unstash('sources')
// Configure and build. // dir('sources') {
cmakeBuild([ // // Configure and build.
buildDir: 'build', // cmakeBuild([
installation: 'cmake in search path', // buildDir: 'build',
sourceDir: '.', // installation: 'cmake in search path',
cmakeArgs: '-DCAF_BUILD_TEX_MANUAL=yes', // sourceDir: '.',
steps: [[ // cmakeArgs: '-DCAF_BUILD_TEX_MANUAL=yes',
args: '--target doc', // steps: [[
withCmake: true, // args: '--target doc',
]], // withCmake: true,
]) // ]],
sshagent(['84d71a75-cbb6-489a-8f4c-d0e2793201e9']) { // ])
sh """ // sshagent(['84d71a75-cbb6-489a-8f4c-d0e2793201e9']) {
if [ "${env.GIT_BRANCH}" = "master" ]; then // sh """
rsync -e "ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" -r -z --delete build/doc/html/ www.inet.haw-hamburg.de:/users/www/www.actor-framework.org/html/doc // if [ "${env.GIT_BRANCH}" = "master" ]; then
scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null build/doc/manual.pdf www.inet.haw-hamburg.de:/users/www/www.actor-framework.org/html/pdf/manual.pdf // rsync -e "ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" -r -z --delete build/doc/html/ www.inet.haw-hamburg.de:/users/www/www.actor-framework.org/html/doc
fi // scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null build/doc/manual.pdf www.inet.haw-hamburg.de:/users/www/www.actor-framework.org/html/pdf/manual.pdf
""" // fi
} // """
} // }
dir('read-the-docs') { // }
git([ // }
credentialsId: '9b054212-9bb4-41fd-ad8e-b7d47495303f', // }
url: 'git@github.com:actor-framework/read-the-docs.git',
])
sh """
if [ "${env.GIT_BRANCH}" = "master" ]; then
cp ../sources/build/doc/rst/* .
if [ -n "\$(git status --porcelain)" ]; then
git add .
git commit -m "Update Manual"
git push --set-upstream origin master
if [ -z "\$(grep 'exp.sha' ../sources/release.txt)" ] ; then
git tag \$(cat ../sources/release.txt)
git push origin \$(cat ../sources/release.txt)
fi
fi
fi
"""
}
}
}
stage('Notify') { stage('Notify') {
steps { steps {
collectResults(config, PrettyJobName) collectResults(config, PrettyJobName)
......
...@@ -48,7 +48,6 @@ Usage: $0 [OPTION]... [VAR=VALUE]... ...@@ -48,7 +48,6 @@ Usage: $0 [OPTION]... [VAR=VALUE]...
Optional Targets: Optional Targets:
--with-qt-examples build Qt example(s) --with-qt-examples build Qt example(s)
--with-protobuf-examples build Google Protobuf example(s) --with-protobuf-examples build Google Protobuf example(s)
--with-tex-manual build the LaTeX manual
Installation Directories: Installation Directories:
--prefix=PREFIX installation directory [/usr/local] --prefix=PREFIX installation directory [/usr/local]
...@@ -328,9 +327,6 @@ while [ $# -ne 0 ]; do ...@@ -328,9 +327,6 @@ while [ $# -ne 0 ]; do
--with-protobuf-examples) --with-protobuf-examples)
append_cache_entry CAF_BUILD_PROTOBUF_EXAMPLES BOOL yes append_cache_entry CAF_BUILD_PROTOBUF_EXAMPLES BOOL yes
;; ;;
--with-tex-manual)
append_cache_entry CAF_BUILD_TEX_MANUAL BOOL yes
;;
--no-curl-examples) --no-curl-examples)
append_cache_entry CAF_NO_CURL_EXAMPLES BOOL yes append_cache_entry CAF_NO_CURL_EXAMPLES BOOL yes
;; ;;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment