Skip to content

Commit

Permalink
Update CI for master
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr committed Dec 3, 2019
1 parent 31167df commit 2c53841
Show file tree
Hide file tree
Showing 2 changed files with 172 additions and 3 deletions.
51 changes: 48 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,53 @@ node_js:
sudo: false

install:
- cd tests
- npm install
- cd tests
- npm install
- npm install -g concat-json-files

script:
- npm run test
- npm run test
- cd ..

before_deploy:
- concat-json-files "*.json" -t "processes.json"
- git clone --branch gh-pages https://[email protected]/Open-EO/openeo-processes.git gh-pages
- cd gh-pages
- |
if [[ $TRAVIS_BRANCH == 'master' ]] ; then
cp ../index.html index.html
cp ../processes.json processes.json
fi
- |
if [[ $TRAVIS_BRANCH == 'draft' ]] ; then
rm -rf draft
mkdir -p draft
cp ../index.html draft/index.html
cp ../processes.json draft/processes.json
fi
- |
if [ -n "$TRAVIS_TAG" ] ; then
rm -rf $TRAVIS_TAG
mkdir -p $TRAVIS_TAG
cp ../index.html $TRAVIS_TAG/index.html
cp ../processes.json $TRAVIS_TAG/processes.json
fi
deploy:
- provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
local-dir: gh-pages
keep-history: true
committer-from-gh: true
on:
tags: true
- provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
local-dir: gh-pages
keep-history: true
committer-from-gh: true
on:
all_branches: true
condition: $TRAVIS_BRANCH =~ ^(master|draft)$
124 changes: 124 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>openEO API Processes</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,400i,700|Roboto+Mono">
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<script src="https://cdn.jsdelivr.net/npm/@openeo/[email protected]/dist/DocGen.umd.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@openeo/[email protected]/dist/DocGen.css">
<style>
html {
box-sizing: border-box;
text-size-adjust: none;
height: 100%;
font-size: 62.5%;
overflow-x: hidden;
}

@media only screen and (min-width: 100em) {
html {
font-size: 68.75%;
}
}

@media only screen and (min-width: 125em) {
html {
font-size: 75%;
}
}

*,
*::before,
*::after {
box-sizing: inherit;
}

body {
margin: 0;
position: relative;
height: 100%;
}

hr {
overflow: visible;
box-sizing: content-box;
display: block;
height: 0.1rem;
padding: 0;
border: 0;
}

a {
text-decoration: none;
}

small {
font-size: 80%;
}

sub, sup {
position: relative;
font-size: 80%;
line-height: 0;
vertical-align: baseline;
}
sub {
bottom: -0.25em;
}
sup {
top: -0.5em;
}

table {
border-collapse: separate;
border-spacing: 0;
}

body, input {
color: rgba(0, 0, 0, 0.87);
-webkit-font-feature-settings: "kern", "liga";
font-feature-settings: "kern", "liga";
font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

pre, code, kbd {
color: rgba(0, 0, 0, 0.87);
-webkit-font-feature-settings: "kern";
font-feature-settings: "kern";
font-family: "Roboto Mono", "Courier New", Courier, monospace;
}

.anchor {
position: relative;
display: block;
visibility: hidden;
}

#container {
font-size: 1.45rem;
height: 100%;
}
</style>
</head>
<body dir="ltr">
<div id="container">
<div id="app"></div>
</div>
<script>
new Vue({
el: '#app',
render: h => h(DocGen, {
props: {
document: 'processes.json',
categorize: true,
apiVersion: '0.4.2',
title: 'openEO processes (v0.4.2)'
}
})
});
</script>
<noscript>Sorry, the documentation generator requires JavaScript to be enabled!</noscript>
</body>
</html>

0 comments on commit 2c53841

Please sign in to comment.