2019-11-18 13:34:32 -05:00
|
|
|
image: $BUILD_IMAGE
|
2017-08-23 15:40:07 -04:00
|
|
|
|
|
|
|
stages:
|
2020-04-29 14:40:55 -04:00
|
|
|
- check
|
2017-08-23 15:40:07 -04:00
|
|
|
- build
|
|
|
|
- deploy
|
|
|
|
|
2020-04-29 14:40:55 -04:00
|
|
|
release_check:
|
|
|
|
stage: check
|
|
|
|
script:
|
|
|
|
- build-aux/release-check
|
|
|
|
only:
|
|
|
|
- tags
|
|
|
|
|
2017-08-23 15:40:07 -04:00
|
|
|
build:
|
|
|
|
stage: build
|
|
|
|
script:
|
2019-11-15 10:35:09 -05:00
|
|
|
- git submodule update --init --recursive
|
|
|
|
- git clone https://gitlab.com/mikegerwitz/hoxsl
|
2017-08-23 15:40:07 -04:00
|
|
|
- export SAXON_CP=/usr/share/ant/lib/saxon9/saxon9he.jar
|
2019-11-18 14:14:38 -05:00
|
|
|
- export HOXSL=hoxsl
|
|
|
|
- ./bootstrap
|
2023-05-19 13:42:56 -04:00
|
|
|
- make clean all check info pdf html
|
2017-08-23 15:40:07 -04:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- doc/
|
2022-08-29 16:15:37 -04:00
|
|
|
- tamer/target/*/tamec
|
|
|
|
- tamer/target/*/tameld
|
2022-09-20 09:52:42 -04:00
|
|
|
- tamer/target/doc
|
2019-11-15 10:35:09 -05:00
|
|
|
expire_in: 30 min
|
|
|
|
|
2021-04-30 09:16:01 -04:00
|
|
|
build:doc:tpl:
|
|
|
|
image: $BUILD_IMAGE_TEXLIVE
|
|
|
|
stage: build
|
|
|
|
script:
|
|
|
|
- cd design/tpl/
|
|
|
|
- make
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- design/tpl/tpl.pdf
|
|
|
|
expire_in: 30 min
|
|
|
|
|
2017-08-23 15:40:07 -04:00
|
|
|
pages:
|
|
|
|
stage: deploy
|
|
|
|
script:
|
|
|
|
- mkdir -p public/doc
|
|
|
|
- mv doc/tame.html/* doc/tame.pdf doc/tame.info public/
|
2019-11-18 13:24:22 -05:00
|
|
|
- mv tamer/target/doc public/tamer/
|
2021-04-30 09:16:01 -04:00
|
|
|
- mkdir -p public/design
|
|
|
|
- mv design/tpl/tpl.pdf public/design/
|
2017-08-23 15:40:07 -04:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- public/
|
|
|
|
expire_in: 30 min
|
|
|
|
only:
|
2021-08-13 15:12:46 -04:00
|
|
|
- main
|
2021-10-07 15:54:44 -04:00
|
|
|
- stage
|
2021-10-06 14:08:23 -04:00
|
|
|
|
|
|
|
ci:merge:
|
|
|
|
stage: deploy
|
|
|
|
script:
|
|
|
|
- git config user.email "gitlab-ci@localhost"
|
|
|
|
- git config user.name "GitLab CI"
|
|
|
|
- git checkout main
|
|
|
|
- git reset --hard origin/main
|
|
|
|
- git merge --ff origin/stage
|
2021-10-07 15:54:44 -04:00
|
|
|
# Do not trigger the pipeline after pushing; there's no use in
|
|
|
|
# re-doing the work we just did, since the merge is a fast-forward.
|
|
|
|
- git push -o ci.skip http://ci:$STAGE_MERGE_ACCESS_TOKEN@$CI_SERVER_HOST/$CI_PROJECT_PATH.git HEAD:main
|
2021-10-06 14:08:23 -04:00
|
|
|
only:
|
|
|
|
- stage
|
|
|
|
|