We use our own Drone instance to validate Pull Requests.

This commit is contained in:
ᎠᎡ. Ѕϵrgϵ Ѵictor 2020-08-25 15:58:25 +07:00
parent 25088b143b
commit ddd4b5b68c
2 changed files with 29 additions and 0 deletions

21
.github/.drone.yml vendored Normal file
View File

@ -0,0 +1,21 @@
# (C) Serge Victor 2020, GPLv3 License
#
# recently build version of documents is available on permanent storage disk mounted on /LDP
kind: pipeline
type: docker
name: 🗃 LDP Builder
steps:
- name: Martin's builder
image: tldp/builder:latest
commands:
- ldptool --dump-cfg
- rm -rf /LDP/BUILD
- rm -rf /LDP/MAIN
- mkdir -p /LDP/BUILD
- mkdir -p /LDP/MAIN
- rsync -av /LDP/WWW/en/ /LDP/MAIN
- ldptool --loglevel info --builddir /LDP/BUILD --configfile .github/builder-pr.ldptool.cfg --pubdir /LDP/MAIN --list
- ldptool --loglevel info --builddir /LDP/BUILD --configfile .github/builder-pr.ldptool.cfg --pubdir /LDP/MAIN --publish
- rsync -av --delete-after /LDP/MAIN/ /LDP/WWW/en

8
.github/builder-pr.ldptool.cfg vendored Normal file
View File

@ -0,0 +1,8 @@
[ldptool]
sourcedir = /drone/src/LDP/faq/linuxdoc/,
/drone/src/LDP/guide/linuxdoc/,
/drone/src/LDP/howto/linuxdoc/,
/drone/src/LDP/howto/docbook/,
/drone/src/LDP/guide/docbook/,
/drone/src/LDP/ref/docbook/,
/drone/src/LDP/faq/docbook/