Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Charles Nepote
validata-doc-generator
Commits
0c33db70
Commit
0c33db70
authored
Oct 12, 2018
by
Christophe Benz
Browse files
Update CI config
parent
32a4e336
Changes
2
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
0c33db70
...
...
@@ -4,15 +4,27 @@ before_script:
-
apt --yes update
-
apt --yes install --no-install-recommends git python3 python3-pip python3-setuptools
-
pip3 install --requirement requirements.txt
# Run ssh-agent (inside the build environment).
-
eval $(ssh-agent -s)
# Add the SSH key stored in SSH_PRIVATE_KEY variable to the agent store.
-
ssh-add <(echo "$SSH_PRIVATE_KEY")
# Add the SSH keys of remote Git servers, to disable host key checking questions.
-
mkdir -p ~/.ssh
-
ssh-keyscan -t rsa git.opendatafrance.net >> ~/.ssh/known_hosts
-
git config --global push.default simple
-
git config --global user.email "validata-doc@validata.fr"
-
git config --global user.name "Validata documentation
builde
r"
-
git config --global user.email "validata-doc
-generator
@validata.fr"
-
git config --global user.name "Validata documentation
generato
r"
job
:
stage
:
build
script
:
-
python3 validata_schemas_to_md.py static/schemas
-
git checkout -B "$CI_BUILD_REF_NAME" "$CI_BUILD_REF"
-
git clone git@git.opendatafrance.net:validata/validata-doc.git
-
python3 validata_schemas_to_md.py validata-doc/schemas
-
cd validata-doc
-
git add -A
-
git commit -m "Update documentation" ||
true
-
git push
origin master
-
git push
README.md
View file @
0c33db70
#
V
alidata-doc
#
v
alidata-doc
-generator
## Génération de documentation en Markdown
...
...
@@ -11,5 +11,5 @@ python3 table_schema_to_md.py table_schema.json > output.md
Générer un fichier Markdown pour chacun des schémas de Validata :
```
bash
python3 validata_schemas_to_md.py
stati
c/schemas
python3 validata_schemas_to_md.py
/path/to/validata-do
c/schemas
/
```
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment