Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add release checkout script #485

Merged
merged 2 commits into from
Jul 8, 2018
Merged

Add release checkout script #485

merged 2 commits into from
Jul 8, 2018

Conversation

wing328
Copy link
Member

@wing328 wing328 commented Jul 6, 2018

PR checklist

  • Read the contribution guidelines.
  • Ran the shell script under ./bin/ to update Petstore sample so that CIs can verify the change. (For instance, only need to run ./bin/{LANG}-petstore.sh and ./bin/security/{LANG}-petstore.sh if updating the {LANG} (e.g. php, ruby, python, etc) code generator or {LANG} client's mustache templates). Windows batch files can be found in .\bin\windows\.
  • Filed the PR against the correct branch: master, 3.1.x, 4.0.x. Default: master.
  • Copied the technical committee to review the pull request if your PR is targeting a particular programming language.

Description of the PR

Here are some examples:

➜  utils git:(release_checkout) ✗ ruby release_checkout.rb 3.0.4
Running checkout on OpenAPI Generator release 3.0.4
Checking homebrew forumla ... [ERROR]
> https://raw.githubusercontent.com/Homebrew/homebrew-core/master/Formula/openapi-generator.rb not yet updated with https://search.maven.org/remotecontent?filepath=org/openapitools/openapi-generator-cli/3.0.4/openapi-generator-cli-3.0.4.jar
Checking openapi-generator JAR ... [ERROR]
> http://central.maven.org/maven2/org/openapitools/openapi-generator/3.0.4/openapi-generator-3.0.4.jar not found
Checking openapi-generator-cli JAR ... [ERROR]
> http://central.maven.org/maven2/org/openapitools/openapi-generator-cli/3.0.4/openapi-generator-cli-3.0.4.jar not found
Checking openapi-generator-maven-plugin JAR ... [ERROR]
> http://central.maven.org/maven2/org/openapitools/openapi-generator-maven-plugin/3.0.4/openapi-generator-maven-plugin-3.0.4.jar not found
Checking openapi-generator-gradle-plugin JAR ... [ERROR]
> http://central.maven.org/maven2/org/openapitools/openapi-generator-gradle-plugin/3.0.4/openapi-generator-gradle-plugin-3.0.4.jar not found
Checking openapi-generator-online JAR ... [ERROR]
> http://central.maven.org/maven2/org/openapitools/openapi-generator-online/3.0.4/openapi-generator-online-3.0.4.jar not found
Checking openapi-generator-project pom.xml ... [ERROR]
> http://central.maven.org/maven2/org/openapitools/openapi-generator-project/3.0.4/openapi-generator-project-3.0.4.pom not found
Checking openapi-generator README.md ... [ERROR]
> '[3.0.4](https://github.com/OpenAPITools/openapi-generator/releases/tag/v3.0.4)' not found in README.md
> 'JAR location: `http://central.maven.org/maven2/org/openapitools/openapi-generator-cli/3.0.4/openapi-generator-cli-3.0.4.jar`' not found in README.md
> 'wget http://central.maven.org/maven2/org/openapitools/openapi-generator-cli/3.0.4/openapi-generator-cli-3.0.4.jar -O openapi-generator-cli.jar' not found in README.md
> 'Invoke-WebRequest -OutFile openapi-generator-cli.jar http://central.maven.org/maven2/org/openapitools/openapi-generator-cli/3.0.4/openapi-generator-cli-3.0.4.jar' not found in README.md
➜  utils git:(release_checkout) ✗ ruby release_checkout.rb 3.0.3
Running checkout on OpenAPI Generator release 3.0.3
Checking homebrew forumla ... [OK]
Checking openapi-generator JAR ... [OK]
Checking openapi-generator-cli JAR ... [OK]
Checking openapi-generator-maven-plugin JAR ... [OK]
Checking openapi-generator-gradle-plugin JAR ... [OK]
Checking openapi-generator-online JAR ... [OK]
Checking openapi-generator-project pom.xml ... [OK]
Checking openapi-generator README.md ... [OK]

@wing328
Copy link
Member Author

wing328 commented Jul 8, 2018

Updated checkout result

➜  utils git:(release_checkout) ruby release_checkout.rb 3.1.0
Running checkout on OpenAPI Generator release 3.1.0
Checking homebrew forumla ... [OK]
Checking openapi-generator JAR ... [OK]
Checking openapi-generator-cli JAR ... [OK]
Checking openapi-generator-maven-plugin JAR ... [OK]
Checking openapi-generator-gradle-plugin JAR ... [OK]
Checking openapi-generator-online JAR ... [OK]
Checking openapi-generator-project pom.xml ... [OK]
Checking openapi-generator README.md ... [OK]
Checking openapi-generator-online docker ... [OK]
Checking openapi-generator-cli docker ... [OK]

@wing328 wing328 merged commit 950c584 into master Jul 8, 2018
@wing328 wing328 deleted the release_checkout branch July 8, 2018 05:07
@wing328
Copy link
Member Author

wing328 commented Jul 8, 2018

@wing328 wing328 changed the title [WIP] Add release checkout script Add release checkout script Jul 8, 2018
@wing328 wing328 added this to the 3.1.1 milestone Jul 8, 2018
A-Joshi pushed a commit to ihsmarkitoss/openapi-generator that referenced this pull request Feb 27, 2019
* add release checkout script

* add check for docker images
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant