forked from OpenAPITools/openapi-generator
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from didx-xyz/update-openapi-master
Update master branch with upstream
- Loading branch information
Showing
31,530 changed files
with
1,925,119 additions
and
739,541 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,118 +1,219 @@ | ||
version: 2 | ||
version: 2.1 | ||
commands: # a reusable command with parameters | ||
command_build_and_test: | ||
parameters: | ||
nodeNo: | ||
default: "0" | ||
type: string | ||
steps: | ||
# Restore the dependency cache | ||
- restore_cache: | ||
keys: | ||
# Default branch if not | ||
- source-v2-{{ .Branch }}-{{ .Revision }} | ||
- source-v2-{{ .Branch }}- | ||
- source-v2- | ||
# Machine Setup | ||
# If you break your build into multiple jobs with workflows, you will probably want to do the parts of this that are relevant in each | ||
- run: | ||
name: Install Headless Chrome dependencies | ||
command: | | ||
sudo apt-get update && sudo apt-get install -yq \ | ||
gconf-service libasound2 libatk1.0-0 libatk-bridge2.0-0 libc6 libcairo2 libcups2 libdbus-1-3 \ | ||
libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 \ | ||
libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 \ | ||
libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates \ | ||
fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget libgbm1 | ||
# The following `checkout` command checks out your code to your working directory. In 1.0 we did this implicitly. In 2.0 you can choose where in the course of a job your code should be checked out. | ||
- checkout | ||
# Prepare for artifact and test results collection equivalent to how it was done on 1.0. | ||
# In many cases you can simplify this from what is generated here. | ||
# 'See docs on artifact collection here https://circleci.com/docs/2.0/artifacts/' | ||
- run: mkdir -p $CIRCLE_ARTIFACTS $CIRCLE_TEST_REPORTS | ||
# This is based on your 1.0 configuration file or project settings | ||
#- run: | ||
# command: sudo update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java; sudo update-alternatives --set javac /usr/lib/jvm/java-8-openjdk-amd64/bin/javac; echo -e "export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64" >> $BASH_ENV | ||
- run: | ||
command: java -version | ||
- run: | ||
command: 'sudo docker info >/dev/null 2>&1 || sudo service docker start; ' | ||
- run: | ||
command: |- | ||
printf '127.0.0.1 petstore.swagger.io | ||
' | sudo tee -a /etc/hosts | ||
# - 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 | ||
- run: docker run --name petstore.swagger -d -e SWAGGER_HOST=http://petstore.swagger.io -e SWAGGER_BASE_PATH=/v2 -p 80:8080 swaggerapi/petstore | ||
- run: docker ps -a | ||
- run: sleep 30 | ||
- run: cat /etc/hosts | ||
# Test | ||
- run: mvn --no-snapshot-updates --quiet clean install -Dorg.slf4j.simpleLogger.defaultLogLevel=error | ||
- run: | ||
name: "Setup custom environment variables" | ||
command: echo 'export CIRCLE_NODE_INDEX="<<parameters.nodeNo>>"' >> $BASH_ENV | ||
- run: ./CI/circle_parallel.sh | ||
# Save dependency cache | ||
- save_cache: | ||
key: source-v2-{{ .Branch }}-{{ .Revision }} | ||
paths: | ||
# This is a broad list of cache paths to include many possible development environments | ||
# You can probably delete some of these entries | ||
- vendor/bundle | ||
- ~/.nvm | ||
- ~/.pyenv | ||
- ~/virtualenvs | ||
- ~/.m2 | ||
- ~/.ivy2 | ||
- ~/.sbt | ||
- ~/.bundle | ||
- ~/.go_workspace | ||
- ~/.gradle | ||
- ~/.cache/bower | ||
- ".git" | ||
- ~/.stack | ||
- /home/circleci/OpenAPITools/openapi-generator/samples/client/petstore/haskell-http-client/.stack-work | ||
- ~/R | ||
# save "default" cache using the key "source-v2-" | ||
- save_cache: | ||
key: source-v2- | ||
paths: | ||
# This is a broad list of cache paths to include many possible development environments | ||
# You can probably delete some of these entries | ||
- vendor/bundle | ||
- ~/.nvm | ||
- ~/.pyenv | ||
- ~/virtualenvs | ||
- ~/.m2 | ||
- ~/.ivy2 | ||
- ~/.sbt | ||
- ~/.bundle | ||
- ~/.go_workspace | ||
- ~/.gradle | ||
- ~/.cache/bower | ||
- ".git" | ||
- ~/.stack | ||
- /home/circleci/OpenAPITools/openapi-generator/samples/client/petstore/haskell-http-client/.stack-work | ||
- ~/R | ||
# Teardown | ||
# If you break your build into multiple jobs with workflows, you will probably want to do the parts of this that are relevant in each | ||
# Save test results | ||
- store_test_results: | ||
path: /tmp/circleci-test-results | ||
# Save artifacts | ||
- store_artifacts: | ||
path: /tmp/circleci-artifacts | ||
- store_artifacts: | ||
path: /tmp/circleci-test-results | ||
command_docker_build_and_test: | ||
parameters: | ||
nodeNo: | ||
default: "0" | ||
type: string | ||
steps: | ||
# Machine Setup | ||
# If you break your build into multiple jobs with workflows, you will probably want to do the parts of this that are relevant in each | ||
# The following `checkout` command checks out your code to your working directory. In 1.0 we did this implicitly. In 2.0 you can choose where in the course of a job your code should be checked out. | ||
- checkout | ||
# Prepare for artifact and test results collection equivalent to how it was done on 1.0. | ||
# In many cases you can simplify this from what is generated here. | ||
# 'See docs on artifact collection here https://circleci.com/docs/2.0/artifacts/' | ||
- run: mkdir -p $CIRCLE_ARTIFACTS $CIRCLE_TEST_REPORTS | ||
# This is based on your 1.0 configuration file or project settings | ||
# - run: | ||
# command: sudo update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java; sudo update-alternatives --set javac /usr/lib/jvm/java-8-openjdk-amd64/bin/javac; echo -e "export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64" >> $BASH_ENV | ||
# - run: | ||
# Test | ||
# - run: mvn --no-snapshot-updates --quiet clean install -Dorg.slf4j.simpleLogger.defaultLogLevel=error | ||
- run: | ||
name: "Setup custom environment variables" | ||
command: echo 'export CIRCLE_NODE_INDEX="<<parameters.nodeNo>>"' >> $BASH_ENV | ||
- run: ./CI/circle_parallel.sh | ||
# Teardown | ||
# If you break your build into multiple jobs with workflows, you will probably want to do the parts of this that are relevant in each | ||
# Save test results | ||
- store_test_results: | ||
path: /tmp/circleci-test-results | ||
# Save artifacts | ||
- store_artifacts: | ||
path: /tmp/circleci-artifacts | ||
- store_artifacts: | ||
path: /tmp/circleci-test-results | ||
jobs: | ||
build: | ||
# docker: | ||
# #- image: openapitools/openapi-generator | ||
# - image: swaggerapi/petstore | ||
# environment: | ||
# SWAGGER_HOST=http://petstore.swagger.io | ||
# SWAGGER_BASE_PATH=/v2 | ||
node0: | ||
machine: | ||
image: ubuntu-2004:202201-02 | ||
working_directory: ~/OpenAPITools/openapi-generator | ||
shell: /bin/bash --login | ||
environment: | ||
CIRCLE_ARTIFACTS: /tmp/circleci-artifacts | ||
CIRCLE_TEST_REPORTS: /tmp/circleci-test-results | ||
DOCKER_GENERATOR_IMAGE_NAME: openapitools/openapi-generator | ||
DOCKER_CODEGEN_CLI_IMAGE_NAME: openapitools/openapi-generator-cli | ||
steps: | ||
- command_build_and_test: | ||
nodeNo: "0" | ||
node1: | ||
machine: | ||
image: circleci/classic:latest | ||
image: ubuntu-2004:202201-02 | ||
working_directory: ~/OpenAPITools/openapi-generator | ||
parallelism: 3 | ||
shell: /bin/bash --login | ||
environment: | ||
CIRCLE_ARTIFACTS: /tmp/circleci-artifacts | ||
CIRCLE_TEST_REPORTS: /tmp/circleci-test-results | ||
DOCKER_GENERATOR_IMAGE_NAME: openapitools/openapi-generator | ||
DOCKER_CODEGEN_CLI_IMAGE_NAME: openapitools/openapi-generator-cli | ||
steps: | ||
# Restore the dependency cache | ||
- restore_cache: | ||
keys: | ||
# Default branch if not | ||
- source-v2-{{ .Branch }}-{{ .Revision }} | ||
- source-v2-{{ .Branch }}- | ||
- source-v2- | ||
# Machine Setup | ||
# If you break your build into multiple jobs with workflows, you will probably want to do the parts of this that are relevant in each | ||
# The following `checkout` command checks out your code to your working directory. In 1.0 we did this implicitly. In 2.0 you can choose where in the course of a job your code should be checked out. | ||
- checkout | ||
# Prepare for artifact and test results collection equivalent to how it was done on 1.0. | ||
# In many cases you can simplify this from what is generated here. | ||
# 'See docs on artifact collection here https://circleci.com/docs/2.0/artifacts/' | ||
- run: mkdir -p $CIRCLE_ARTIFACTS $CIRCLE_TEST_REPORTS | ||
# This is based on your 1.0 configuration file or project settings | ||
- run: | ||
command: sudo update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java; sudo update-alternatives --set javac /usr/lib/jvm/java-8-openjdk-amd64/bin/javac; echo -e "export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64" >> $BASH_ENV | ||
- run: | ||
command: 'sudo docker info >/dev/null 2>&1 || sudo service docker start; ' | ||
- run: | ||
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 | ||
nvm alias default stable | ||
# 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 | ||
- run: docker run --name petstore.swagger -d -e SWAGGER_HOST=http://petstore.swagger.io -e SWAGGER_BASE_PATH=/v2 -p 80:8080 swaggerapi/petstore | ||
- run: docker ps -a | ||
- run: sleep 30 | ||
- run: cat /etc/hosts | ||
# Test | ||
- run: mvn --no-snapshot-updates --quiet clean install -Dorg.slf4j.simpleLogger.defaultLogLevel=error | ||
- run: ./CI/circle_parallel.sh | ||
# Save dependency cache | ||
- save_cache: | ||
key: source-v2-{{ .Branch }}-{{ .Revision }} | ||
paths: | ||
# This is a broad list of cache paths to include many possible development environments | ||
# You can probably delete some of these entries | ||
- vendor/bundle | ||
- ~/virtualenvs | ||
- ~/.m2 | ||
- ~/.ivy2 | ||
- ~/.sbt | ||
- ~/.bundle | ||
- ~/.go_workspace | ||
- ~/.gradle | ||
- ~/.cache/bower | ||
- ".git" | ||
- ~/.stack | ||
- /home/circleci/OpenAPITools/openapi-generator/samples/client/petstore/haskell-http-client/.stack-work | ||
- ~/R | ||
# save "default" cache using the key "source-v2-" | ||
- save_cache: | ||
key: source-v2- | ||
paths: | ||
# This is a broad list of cache paths to include many possible development environments | ||
# You can probably delete some of these entries | ||
- vendor/bundle | ||
- ~/virtualenvs | ||
- ~/.m2 | ||
- ~/.ivy2 | ||
- ~/.sbt | ||
- ~/.bundle | ||
- ~/.go_workspace | ||
- ~/.gradle | ||
- ~/.cache/bower | ||
- ".git" | ||
- ~/.stack | ||
- /home/circleci/OpenAPITools/openapi-generator/samples/client/petstore/haskell-http-client/.stack-work | ||
- ~/R | ||
# Teardown | ||
# If you break your build into multiple jobs with workflows, you will probably want to do the parts of this that are relevant in each | ||
# Save test results | ||
- store_test_results: | ||
path: /tmp/circleci-test-results | ||
# Save artifacts | ||
- store_artifacts: | ||
path: /tmp/circleci-artifacts | ||
- store_artifacts: | ||
path: /tmp/circleci-test-results | ||
- command_build_and_test: | ||
nodeNo: "1" | ||
node2: | ||
machine: | ||
image: ubuntu-2004:202201-02 | ||
working_directory: ~/OpenAPITools/openapi-generator | ||
shell: /bin/bash --login | ||
environment: | ||
CIRCLE_ARTIFACTS: /tmp/circleci-artifacts | ||
CIRCLE_TEST_REPORTS: /tmp/circleci-test-results | ||
DOCKER_GENERATOR_IMAGE_NAME: openapitools/openapi-generator | ||
DOCKER_CODEGEN_CLI_IMAGE_NAME: openapitools/openapi-generator-cli | ||
steps: | ||
- command_build_and_test: | ||
nodeNo: "2" | ||
node3: | ||
machine: | ||
image: ubuntu-2004:202201-02 | ||
working_directory: ~/OpenAPITools/openapi-generator | ||
shell: /bin/bash --login | ||
environment: | ||
CIRCLE_ARTIFACTS: /tmp/circleci-artifacts | ||
CIRCLE_TEST_REPORTS: /tmp/circleci-test-results | ||
DOCKER_GENERATOR_IMAGE_NAME: openapitools/openapi-generator | ||
DOCKER_CODEGEN_CLI_IMAGE_NAME: openapitools/openapi-generator-cli | ||
steps: | ||
- checkout | ||
- command_build_and_test: | ||
nodeNo: "3" | ||
node4: | ||
docker: | ||
- image: fkrull/multi-python | ||
working_directory: ~/OpenAPITools/openapi-generator | ||
shell: /bin/bash --login | ||
environment: | ||
CIRCLE_ARTIFACTS: /tmp/circleci-artifacts | ||
CIRCLE_TEST_REPORTS: /tmp/circleci-test-results | ||
DOCKER_GENERATOR_IMAGE_NAME: openapitools/openapi-generator | ||
DOCKER_CODEGEN_CLI_IMAGE_NAME: openapitools/openapi-generator-cli | ||
steps: | ||
- checkout | ||
- command_docker_build_and_test: | ||
nodeNo: "4" | ||
workflows: | ||
version: 2 | ||
build: | ||
jobs: | ||
- node0 | ||
- node1 | ||
- node2 | ||
- node3 | ||
- node4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{ | ||
"name": "OpenAPIGenerator", | ||
"image": "mcr.microsoft.com/devcontainers/base:debian", | ||
"features": { | ||
"ghcr.io/devcontainers/features/java:1": { | ||
"version": "11", | ||
"installMaven": true | ||
}, | ||
"ghcr.io/devcontainers/features/node:1": { | ||
"version": "lts" | ||
}, | ||
"ghcr.io/snebjorn/devcontainer-feature/chromium:latest": {} | ||
}, | ||
// Configure tool-specific properties. | ||
"customizations": { | ||
// Configure properties specific to VS Code. | ||
"vscode": { | ||
// Set *default* container specific settings.json values on container create. | ||
"settings": { | ||
"java.configuration.runtimes": [ | ||
{ | ||
"name": "JavaSE-11", | ||
"path": "/usr/local/sdkman/candidates/java/11.0.16.1-ms", | ||
"sources": "/usr/local/sdkman/candidates/java/11.0.16.1-ms/lib/src.zip", | ||
"javadoc": "https://docs.oracle.com/en/java/javase/11/docs/api", | ||
"default": true | ||
} | ||
] | ||
}, | ||
// Add the IDs of extensions you want installed when the container is created. | ||
"extensions": [ | ||
"vscjava.vscode-java-pack", | ||
"attilabuti.mustache-syntax-vscode", | ||
"formulahendry.code-runner", | ||
"visualstudioexptteam.vscodeintellicode", | ||
"42crunch.vscode-openapi", | ||
"mermade.openapi-lint" | ||
] | ||
} | ||
}, | ||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
// "forwardPorts": [], | ||
// Use 'postCreateCommand' to run commands after the container is created. | ||
// "postCreateCommand": "mvn clean package -DskipTests", | ||
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. | ||
"remoteUser": "vscode" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
use flake |
Oops, something went wrong.