Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • 713/mentat/mentat-test-3
1 result
Show changes
Commits on Source (2)
...@@ -102,18 +102,12 @@ twine-job: ...@@ -102,18 +102,12 @@ twine-job:
pages: pages:
stage: deploy stage: deploy
script: script:
- make docs # Create documentation - make docs # Build documentation
- curl -kL --header "JOB-TOKEN:$CI_JOB_TOKEN" "$CI_API_V4_URL/projects/$CI_PROJECT_ID/jobs/artifacts/devel/download?job=pages" -o devel.zip # Download docs and files from devel branch - for branch in devel master release; do curl -L --header "JOB-TOKEN:$CI_JOB_TOKEN" "$CI_API_V4_URL/projects/$CI_PROJECT_ID/jobs/artifacts/$branch/download?job=pages" -o $branch.zip; done # Download the documentation from devel, master and release branches
- curl -kL --header "JOB-TOKEN:$CI_JOB_TOKEN" "$CI_API_V4_URL/projects/$CI_PROJECT_ID/jobs/artifacts/master/download?job=pages" -o master.zip # Download docs and files from master branch - unzip -o '*.zip' || true # Unzip downloaded documentation while ignoring not existing files
- curl -kL --header "JOB-TOKEN:$CI_JOB_TOKEN" "$CI_API_V4_URL/projects/$CI_PROJECT_ID/jobs/artifacts/release/download?job=pages" -o release.zip # Download docs and files from release branch - mkdir -p public/"$CI_COMMIT_BRANCH" # Create directory for docs for this branch if it doesn't exist
- unzip -o '*.zip' || true # Unzip and ignore not existing zipfiles - cp -rf doc/sphinx/_build/html public/"$CI_COMMIT_BRANCH" # Copy docs to shared folder used by GitLab to publish Pages
- mkdir -p public/"$CI_COMMIT_BRANCH" # Create directory for docs if it doesn't exist - 'if [ ! -z ${BACKUP_ZIPFILE_URL+x} ]; then curl "$BACKUP_ZIPFILE_URL" --output backup.zip; unzip -o backup.zip; fi' # If BACKUP_ZIPFILE_URL is defined, download zipfile available at this address and unzip
- cp -rf doc/sphinx/_build/html public/"$CI_COMMIT_BRANCH" # Copy docs to shared folder
- 'if [ ! -z ${BACKUP_ZIPFILE_URL+x} ]; then curl "$BACKUP_ZIPFILE_URL" --output backup.zip; unzip -o backup.zip; fi'
#- cd public/"$CI_COMMIT_BRANCH"/files
#- echo "<html><body><h1>Directory listing:</h1>" > ./index.html # Create directory listing
#- find -exec echo "<a href='{}'>{}</a><br/>" \; | sort >> ./index.html
#- echo "</body></html>" >> ./index.html
artifacts: artifacts:
name: "$CI_COMMIT_BRANCH" name: "$CI_COMMIT_BRANCH"
paths: paths:
......
...@@ -20,4 +20,4 @@ open-source project. ...@@ -20,4 +20,4 @@ open-source project.
__author__ = "Jan Mach <jan.mach@cesnet.cz>" __author__ = "Jan Mach <jan.mach@cesnet.cz>"
__credits__ = "Pavel Kácha <pavel.kacha@cesnet.cz>, Andrea Kropáčová <andrea.kropacova@cesnet.cz>" __credits__ = "Pavel Kácha <pavel.kacha@cesnet.cz>, Andrea Kropáčová <andrea.kropacova@cesnet.cz>"
__version__ = "2.10.137" __version__ = "2.10.138.dev"