Skip to content

Commit

Permalink
Added subtype-schemas and restructured repo Open-EO/openeo-api#304
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr committed Jul 3, 2020
1 parent d97e7b8 commit de7e836
Show file tree
Hide file tree
Showing 5 changed files with 392 additions and 134 deletions.
12 changes: 6 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,33 +8,33 @@ sudo: false
install:
- cd tests
- npm install
- npm install -g concat-json-files

script:
- npm run test
- cd ..

before_deploy:
- concat-json-files "*.json" -t "processes.json"
- npm run generate
- cd ..
- git clone --branch gh-pages https://[email protected]/Open-EO/openeo-processes.git gh-pages
- cp tests/docs.html index.html
- |
if [[ $TRAVIS_BRANCH == 'draft' ]] ; then
rm -rf gh-pages/draft
mkdir -p gh-pages/draft
rsync -vrm --include='*.json' --include='*.html' --include='examples/***' --exclude='*' . gh-pages/draft
rsync -vrm --include='*.json' --include='*.html' --include='examples/***' --include='meta/***' --exclude='*' . gh-pages/draft
fi
- |
if [[ $TRAVIS_BRANCH == 'master' ]] ; then
find gh-pages -maxdepth 1 -type f -delete
rm -rf gh-pages/examples/
mkdir -p gh-pages
rsync -vrm --include='*.json' --include='*.html' --include='examples/***' --exclude='*' . gh-pages
rsync -vrm --include='*.json' --include='*.html' --include='examples/***' --include='meta/***' --exclude='*' . gh-pages
fi
- |
if [ -n "$TRAVIS_TAG" ] ; then
rm -rf gh-pages/$TRAVIS_TAG
mkdir -p gh-pages/$TRAVIS_TAG
rsync -vrm --include='*.json' --include='*.html' --include='examples/***' --exclude='*' . gh-pages/$TRAVIS_TAG
rsync -vrm --include='*.json' --include='*.html' --include='examples/***' --include='meta/***' --exclude='*' . gh-pages/$TRAVIS_TAG
fi
deploy:
Expand Down
Loading

0 comments on commit de7e836

Please sign in to comment.