ADD: Gitlab pages

This commit is contained in:
2023-02-08 08:42:32 +00:00
parent b46367b842
commit ce55fc1c23
5 changed files with 49 additions and 10 deletions

View File

@@ -1,4 +1,6 @@
stages: [check]
stages:
- check
- pages
variables:
COLUMNS: 9000
@@ -15,3 +17,29 @@ check:
- export COLUMNS=$COLUMNS
- export TERM=$TERM
- python3 pmodules_tools/pmodules_tools.py --deps-check
pages:
stage: pages
artifacts:
paths:
- public
image: ubuntu:20.04
script:
- apt update
- apt -y install pandoc
- mkdir -p /opt && pushd $_
- ln -s /afs/psi.ch/sys/psi.x86_64_el6 psi
- popd
- export PMODULES_VERSION=1.0.0rc14
- export COLUMNS=$COLUMNS
- export TERM=$TERM
- source /opt/psi/config/profile.bash
- module load Python
- mkdir public
- cd pmodules_tools/
- python3 pmodules_tools.py --db-check
- pandoc pmodules_changes.md -o index.html
- cp -v index.html $CI_PROJECT_DIR/public
when: always