Skip to content

Commit 5c28f79

Browse files
Merge pull request #26 from OpenAPITools/master
Merge upstream fixes
2 parents cb4b03f + d179574 commit 5c28f79

File tree

3,295 files changed

+160141
-31251
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,295 files changed

+160141
-31251
lines changed

.github/workflows/check-supported-versions.yaml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
jobs:
88
build:
9-
name: Build on JDK ${{ matrix.java }} and ${{ matrix.os }}
9+
name: 'Build: JDK ${{ matrix.java }} (${{ matrix.os }})'
1010
runs-on: ${{ matrix.os }}
1111
strategy:
1212
matrix:
@@ -48,19 +48,26 @@ jobs:
4848
shell: bash
4949
run: mvn -nsu -B --quiet -Djacoco.skip=true -Dorg.slf4j.simpleLogger.defaultLogLevel=error --no-transfer-progress clean install --file pom.xml ${{ matrix.flags }}
5050

51-
- name: Test gradle
52-
shell: bash
53-
run: gradle -b modules/openapi-generator-gradle-plugin/samples/local-spec/build.gradle buildGoSdk --stacktrace
54-
5551
- name: Upload Maven build artifact
5652
uses: actions/upload-artifact@v1
5753
if: matrix.java == '8' && matrix.os == 'ubuntu-latest'
5854
with:
5955
name: artifact
6056
path: modules/openapi-generator-cli/target/openapi-generator-cli.jar
6157

58+
- name: Test Gradle plugin usage
59+
shell: bash
60+
run: gradle -b modules/openapi-generator-gradle-plugin/samples/local-spec/build.gradle buildGoSdk --stacktrace
61+
62+
- name: Test Maven plugin integration
63+
if: matrix.java == '8'
64+
shell: bash
65+
run: |
66+
cd modules/openapi-generator-maven-plugin
67+
mvn verify -Pintegration
68+
6269
verify:
63-
name: Verifies integrity of the commit on ${{ matrix.os }}
70+
name: Verify outputs on ${{ matrix.os }}
6471
needs: build
6572
runs-on: ${{ matrix.os }}
6673
strategy:

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ script:
148148
- /bin/bash ./bin/utils/detect_tab_in_java_class.sh
149149
# run integration tests defined in maven pom.xml
150150
# WARN: Travis will timeout after 10 minutes of no stdout/stderr activity, which is problematic with mvn --quiet.
151-
- mvn --no-snapshot-updates --quiet --batch-mode --show-version clean install -Dorg.slf4j.simpleLogger.defaultLogLevel=error
152-
- mvn --no-snapshot-updates --quiet --batch-mode --show-version verify -Psamples -Dorg.slf4j.simpleLogger.defaultLogLevel=error
151+
- mvn -e --no-snapshot-updates --quiet --batch-mode --show-version clean install -Dorg.slf4j.simpleLogger.defaultLogLevel=error
152+
- mvn -e --no-snapshot-updates --quiet --batch-mode --show-version verify -Psamples -Dorg.slf4j.simpleLogger.defaultLogLevel=error
153153
after_success:
154154
# push to maven repo
155155
- if [ $SONATYPE_USERNAME ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then

CI/.drone.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@ kind: pipeline
22
name: default
33

44
steps:
5+
# test protobuf schema generator
6+
- name: protobuf-schema-test
7+
image: nanoservice/protobuf-go
8+
commands:
9+
- protoc --version
10+
- mkdir /var/tmp/go/
11+
- cd samples/config/petstore/protobuf-schema
12+
- protoc --go_out=/var/tmp/go/ services/*
13+
- protoc --go_out=/var/tmp/go/ models/*
514
# test aspnetcore 3.x
615
- name: aspnetcore-test
716
image: mcr.microsoft.com/dotnet/core/sdk:3.1
@@ -28,7 +37,7 @@ steps:
2837
- name: java11-test
2938
image: openjdk:11.0
3039
commands:
31-
- ./mvnw -quiet clean install -Dorg.slf4j.simpleLogger.defaultLogLevel=error
40+
- ./mvnw --quiet clean install -Dorg.slf4j.simpleLogger.defaultLogLevel=error
3241
- ./mvnw --quiet verify -Psamples.droneio -Dorg.slf4j.simpleLogger.defaultLogLevel=error
3342
# test java native client
3443
- ./mvnw clean test -f samples/client/petstore/java/native/pom.xml

CONTRIBUTING.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,7 @@ To add test cases (optional) covering the change in the code generator, please r
8787
To test the templates, please perform the following:
8888

8989
- Update the Petstore sample by running the shell scripts under the `bin` folder. For example, run `./bin/generate-samples.sh .
90-
/bin/configs/python*` to update the Python-related samples under [`samples`](https://github.com/openapitools/openapi-generator/tree/master/samples). For Windows, please install [GIT bash](https://gitforwindows.org/). (If you find that there are new files g
91-
enerated or unexpected changes as a result of the update, that's not unusual as the test cases are added to the OpenAPI spec fro
92-
m time to time. If you've questions or concerns, please open a ticket to start a discussion)
90+
/bin/configs/python*` to update the Python-related samples under [`samples`](https://github.com/openapitools/openapi-generator/tree/master/samples). For Windows, please install [GIT bash](https://gitforwindows.org/). (If you find that there are new files generated or unexpected changes as a result of the update, that's not unusual as the test cases are added to the OpenAPI spec from time to time. If you've questions or concerns, please open a ticket to start a discussion)
9391
- During development it can be helpful to quickly regenerate the samples without recompiling all of openapi-generator, e.g. when you have only updated the mustache templates. This can be done by passing the `-t` parameter: `-t modules/openapi-generator/src/main/resources/python`.
9492
- Run the tests in the sample folder using maven `mvn integration-test -f /path/to/pom.xml`, e.g. `mvn integration-test -f samples/client/petstore/python/pom.xml`. (some languages may not contain unit testing for Petstore and we're looking for contribution from the community to implement those tests)
9593
- Finally, git commit the updated samples files: `git commit -a`

0 commit comments

Comments
 (0)