diff --git a/.circleci/config.yml b/.circleci/config.yml index b1c5957943e..b610ceeb2bb 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -42,24 +42,6 @@ jobs: command: |- printf '127.0.0.1 petstore.swagger.io ' | sudo tee -a /etc/hosts - # Dependencies - # Install latest stable node for angular 6 - - run: - name: Install node@stable (for angular 6) - command: | - set +e - curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash - export NVM_DIR="/opt/circleci/.nvm" - [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" - #nvm install stable - # install v16 instead of the latest stable version - nvm install 16 - nvm alias default 16 - - # Each step uses the same `$BASH_ENV`, so need to modify it - echo 'export NVM_DIR="/opt/circleci/.nvm"' >> $BASH_ENV - echo "[ -s \"$NVM_DIR/nvm.sh\" ] && . \"$NVM_DIR/nvm.sh\"" >> $BASH_ENV - - run: node --version # - run: docker pull openapitools/openapi-petstore # - run: docker run -d -e OPENAPI_BASE_PATH=/v3 -e DISABLE_API_KEY=1 -e DISABLE_OAUTH=1 -p 80:8080 openapitools/openapi-petstore - run: docker pull swaggerapi/petstore diff --git a/CI/circle_parallel.sh b/CI/circle_parallel.sh index 6e231909d61..697009699a3 100755 --- a/CI/circle_parallel.sh +++ b/CI/circle_parallel.sh @@ -40,6 +40,13 @@ elif [ "$NODE_INDEX" = "2" ]; then sudo apt-get -y build-dep libcurl4-gnutls-dev sudo apt-get -y install libcurl4-gnutls-dev + # Install golang version 1.14 + go version + sudo mkdir /usr/local/go1.14 + wget -c https://dl.google.com/go/go1.14.linux-amd64.tar.gz -O - | sudo tar -xz -C /usr/local/go1.14 + export PATH="/usr/local/go1.14/go/bin:$PATH" + go version + # run integration tests mvn --no-snapshot-updates --quiet verify -Psamples.misc -Dorg.slf4j.simpleLogger.defaultLogLevel=error elif [ "$NODE_INDEX" = "3" ]; then @@ -55,6 +62,21 @@ elif [ "$NODE_INDEX" = "3" ]; then pyenv global 3.6.3 python3 --version + # Install node@stable (for angular 6) + set +e + curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash + export NVM_DIR="/opt/circleci/.nvm" + [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" + #nvm install stable + # install v16 instead of the latest stable version + nvm install 16 + nvm alias default 16 + node --version + + # Each step uses the same `$BASH_ENV`, so need to modify it + echo 'export NVM_DIR="/opt/circleci/.nvm"' >> $BASH_ENV + echo "[ -s \"$NVM_DIR/nvm.sh\" ] && . \"$NVM_DIR/nvm.sh\"" >> $BASH_ENV + mvn --no-snapshot-updates --quiet verify -Psamples.circleci.node3 -Dorg.slf4j.simpleLogger.defaultLogLevel=error else @@ -62,13 +84,6 @@ else #sudo update-java-alternatives -s java-1.7.0-openjdk-amd64 java -version - # Install golang version 1.14 - go version - sudo mkdir /usr/local/go1.14 - wget -c https://dl.google.com/go/go1.14.linux-amd64.tar.gz -O - | sudo tar -xz -C /usr/local/go1.14 - export PATH="/usr/local/go1.14/go/bin:$PATH" - go version - mvn --no-snapshot-updates --quiet verify -Psamples.circleci.others -Dorg.slf4j.simpleLogger.defaultLogLevel=error mvn --no-snapshot-updates --quiet javadoc:javadoc -Psamples.circleci -Dorg.slf4j.simpleLogger.defaultLogLevel=error fi diff --git a/pom.xml b/pom.xml index 35974a9fdf0..c50de3b480d 100644 --- a/pom.xml +++ b/pom.xml @@ -1172,7 +1172,6 @@ - samples/server/petstore/kotlin-springboot samples/server/petstore/jaxrs/jersey2 samples/server/petstore/jaxrs/jersey2-useTags samples/server/petstore/spring-mvc @@ -1230,7 +1229,6 @@ samples/server/petstore/scala-akka-http-server samples/server/petstore/scalatra samples/server/petstore/scala-finch - @@ -1247,6 +1245,33 @@ samples/client/petstore/python samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent samples/openapi3/client/petstore/python + + + samples/client/petstore/typescript-angular-v7-provided-in-root + samples/client/petstore/typescript-angular-v11-provided-in-root + samples/openapi3/client/petstore/typescript/builds/default + samples/openapi3/client/petstore/typescript/tests/default + samples/openapi3/client/petstore/typescript/builds/jquery + samples/openapi3/client/petstore/typescript/tests/jquery + samples/openapi3/client/petstore/typescript/builds/object_params + samples/openapi3/client/petstore/typescript/tests/object_params + samples/openapi3/client/petstore/typescript/builds/inversify + + samples/client/petstore/typescript-fetch/builds/default + samples/client/petstore/typescript-fetch/builds/es6-target + samples/client/petstore/typescript-fetch/builds/with-npm-version + samples/client/petstore/typescript-fetch/tests/default + samples/client/petstore/typescript-node/npm + samples/client/petstore/typescript-rxjs/builds/with-npm-version + samples/client/petstore/typescript-axios/builds/with-npm-version + samples/client/petstore/typescript-axios/tests/default + samples/client/petstore/javascript-flowtyped + samples/client/petstore/javascript-es6 + samples/client/petstore/javascript-promise-es6 @@ -1290,39 +1315,6 @@ samples/client/petstore/java/microprofile-rest-client samples/client/petstore/java/apache-httpclient samples/client/petstore/groovy - - samples/client/petstore/go - samples/openapi3/client/petstore/go - samples/client/petstore/javascript-flowtyped - samples/client/petstore/javascript-es6 - samples/client/petstore/javascript-promise-es6 - samples/server/petstore/go-api-server - samples/server/petstore/go-gin-api-server - samples/server/petstore/go-echo-server - - - samples/client/petstore/typescript-angular-v7-provided-in-root - samples/client/petstore/typescript-angular-v11-provided-in-root - samples/openapi3/client/petstore/typescript/builds/default - samples/openapi3/client/petstore/typescript/tests/default - samples/openapi3/client/petstore/typescript/builds/jquery - samples/openapi3/client/petstore/typescript/tests/jquery - samples/openapi3/client/petstore/typescript/builds/object_params - samples/openapi3/client/petstore/typescript/tests/object_params - samples/openapi3/client/petstore/typescript/builds/inversify - - samples/client/petstore/typescript-fetch/builds/default - samples/client/petstore/typescript-fetch/builds/es6-target - samples/client/petstore/typescript-fetch/builds/with-npm-version - samples/client/petstore/typescript-fetch/tests/default - samples/client/petstore/typescript-node/npm - samples/client/petstore/typescript-rxjs/builds/with-npm-version - samples/client/petstore/typescript-axios/builds/with-npm-version - samples/client/petstore/typescript-axios/tests/default @@ -1356,6 +1348,8 @@ samples/client/petstore/kotlin-threetenbp samples/client/petstore/kotlin-uppercase-enum + samples/server/petstore/kotlin-springboot + @@ -1388,6 +1382,12 @@ + + samples/client/petstore/go + samples/openapi3/client/petstore/go + samples/server/petstore/go-api-server + samples/server/petstore/go-gin-api-server + samples/server/petstore/go-echo-server