Skip to content

Commit

Permalink
Merge pull request #49 from axelberndt/develop
Browse files Browse the repository at this point in the history
Modified CI config to generate new docs
  • Loading branch information
sonovice authored Jun 5, 2020
2 parents 95b82ed + 3fe37af commit 0f62c27
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
language: generic
language: python
python:
- "3.8"

branches:
only:
- master

before_install:
- sudo apt-get -qq update
- sudo apt-get install -y libxml2-utils
- sudo apt-get install -y libxml2-utils python3-pip
- nvm install 10.15.3

script:
# Merge single ODD files to one monolithic ODD
Expand All @@ -24,12 +27,18 @@ script:
- curl -s -o mpm_xsd.zip -F [email protected] https://oxgarage-humanum.tei-c.org/ege-webservice/Conversions/ODD%3Atext%3Axml/ODDC%3Atext%3Axml/xsd%3Aapplication%3Axml-xsd/conversion
- unzip -p mpm_xsd.zip document.xsd >mpm.xsd

# Build docs for GitHub Pages
- mkdir -p docs
# Get docs for download assets
- curl -s -o docs.zip -F [email protected] https://oxgarage-humanum.tei-c.org/ege-webservice/Conversions/ODD%3Atext%3Axml/ODDC%3Atext%3Axml/TEI%3Atext%3Axml/xhtml%3Aapplication%3Axhtml%2Bxml/conversion
- unzip docs.zip -d docs
- mv docs/document.html docs/index.html
- sed -i -e 's/href="http:/href="https:/g' docs/index.html

# Build docs for GitHub Pages
- python3 -m pip install setuptools
- python3 -m pip install yattag lxml
- python3 doc_generator/transformer.py
- cd doc_generator
- yarn
- yarn run generate
- cd ..
- mv -f doc_generator/dist docs

# Set git tag for release
- export VERSION=`xmllint --xpath 'string(//*[local-name()="edition"]/@n)' src/mpm.odd`
Expand Down

0 comments on commit 0f62c27

Please sign in to comment.