Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate generated schemas pages under static website #286

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ sudo: required
services:
- docker

before_script:
- ./generate_schemas.sh

script:
- docker run -it --rm -v $PWD:/srv/jekyll -eJEKYLL_UID=$UID jekyll/builder:pages jekyll build --config _config.yml,_prod.yml
- docker run -it --rm -v $(pwd)/_site:/site -it jekyll/builder:pages /usr/gem/bin/htmlproofer /site --disable-external
Expand Down
9 changes: 9 additions & 0 deletions generate_schemas.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#! /bin/sh
# Generate static schema pages from the ome-model specifications


version=$(awk '/omemodel/{getline; print $0}' _config.yml | sed "s/ version: //")
git clone git://github.com/ome/ome-model -b v$version
(cd ome-model/specification && sh publish)
mv ome-model/specification/target/published Schemas
rm -rf ome-model