forked from loafle/openapi-generator-original
* Adds python-experimental generator * Adds python-experimental samples folder which uses its own v2 spec * Adds enusre-up-to-date updates * Removes samples/client/petstore/perl/t/AnotherFakeApiTest.t * Removes comment line from python-experimental generator * Reverts perl docs file * Updates perl sample client * Adds python-experimental to pom.xml * Copies the python test foldeers tests and testfiles into python-experimental * Copies python test folder into python-experimental * Moves python testing from Travis (samples pom.xml profile) to Circlci (samples.circleci pom.xml profile) * Adds python-experimental pom.xml * Adds python-experimental makefile and .sh files * Chenges python-experimental to use gitignored venv rather than .venv which is not ignored when testing * Adds dev-requiremnts.txt and removes .travis.yml from python-experimental so CI tests will pass * Moves python-experimental from CicleCI to Travis to get support for multiple python environments * Updates generator java comment so CI tests will run over again
33 lines
994 B
Bash
Executable File
33 lines
994 B
Bash
Executable File
#!/bin/sh
|
|
|
|
SCRIPT="$0"
|
|
echo "# START SCRIPT: $SCRIPT"
|
|
|
|
while [ -h "$SCRIPT" ] ; do
|
|
ls=`ls -ld "$SCRIPT"`
|
|
link=`expr "$ls" : '.*-> \(.*\)$'`
|
|
if expr "$link" : '/.*' > /dev/null; then
|
|
SCRIPT="$link"
|
|
else
|
|
SCRIPT=`dirname "$SCRIPT"`/"$link"
|
|
fi
|
|
done
|
|
|
|
if [ ! -d "${APP_DIR}" ]; then
|
|
APP_DIR=`dirname "$SCRIPT"`/..
|
|
APP_DIR=`cd "${APP_DIR}"; pwd`
|
|
fi
|
|
|
|
executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
|
|
|
|
if [ ! -f "$executable" ]
|
|
then
|
|
mvn -B clean package $@
|
|
fi
|
|
|
|
# if you've executed sbt assembly previously it will use that instead.
|
|
export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties"
|
|
ags="generate -t modules/openapi-generator/src/main/resources/python -i modules/openapi-generator/src/test/resources/2_0/python-client-experimental/petstore-with-fake-endpoints-models-for-testing.yaml -g python-experimental -o samples/client/petstore/python-experimental -DpackageName=petstore_api $@"
|
|
|
|
java $JAVA_OPTS -jar $executable $ags
|