X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Freleng%2Fhtmlize%2Fdoc-build.sh;fp=jjb%2Freleng%2Fhtmlize%2Fdoc-build.sh;h=33560ceea7191fab913162554ec381e10e914fb7;hb=f634b91b24b10901c9006ceb6ea9c39dab9ab11a;hp=0000000000000000000000000000000000000000;hpb=f6255c45367f39533b589a91ca351ad0bcfd0ac9;p=releng.git diff --git a/jjb/releng/htmlize/doc-build.sh b/jjb/releng/htmlize/doc-build.sh new file mode 100644 index 000000000..33560ceea --- /dev/null +++ b/jjb/releng/htmlize/doc-build.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +set -o errexit + +# Create virtual environment +virtualenv $WORKSPACE/testapi_venv +source $WORKSPACE/testapi_venv/bin/activate + +# Swgger Codegen Tool +url="http://repo1.maven.org/maven2/io/swagger/swagger-codegen-cli/2.2.1/swagger-codegen-cli-2.2.1.jar" + +# Check for jar file locally and in the repo +if [ ! -f swagger-codegen-cli.jar ]; +then + wget http://repo1.maven.org/maven2/io/swagger/swagger-codegen-cli/2.2.1/swagger-codegen-cli-2.2.1.jar -O swagger-codegen-cli.jar +fi + +# Install Pre-requistics +pip install requests + +python ./utils/test/testapi/htmlize/htmlize.py -o ${WORKSPACE}/