forked from loafle/openapi-generator-original
CI improvements (#4791)
* run all script in circleci * test kotlin clients * add new files * undo chanages to circleci script * update samples * update bitwise config * fix typo
This commit is contained in:
parent
bb4af91bbd
commit
adbed055dd
@ -40,12 +40,21 @@ workflows:
|
|||||||
|
|
||||||
sh bin/swift4-all.sh
|
sh bin/swift4-all.sh
|
||||||
- script@1.1.5:
|
- script@1.1.5:
|
||||||
|
title: Run Swift4 tests
|
||||||
inputs:
|
inputs:
|
||||||
- content: |
|
- content: |
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
./samples/client/petstore/swift4/swift4_test_all.sh && ./samples/client/test/swift4/swift4_test_all.sh && exit ${PIPESTATUS[0]}
|
./samples/client/petstore/swift4/swift4_test_all.sh
|
||||||
title: Run Swift4 tests
|
./samples/client/test/swift4/swift4_test_all.sh
|
||||||
|
- script@1.1.5:
|
||||||
|
title: Run all bin scripts
|
||||||
|
inputs:
|
||||||
|
- content: |-
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
./bin/run-all-petstore
|
||||||
|
0
bin/kotlin-client-moshi-codegen.sh
Normal file → Executable file
0
bin/kotlin-client-moshi-codegen.sh
Normal file → Executable file
2
pom.xml
2
pom.xml
@ -1254,9 +1254,11 @@
|
|||||||
<module>samples/client/petstore/kotlin/</module>
|
<module>samples/client/petstore/kotlin/</module>
|
||||||
<module>samples/client/petstore/kotlin-gson/</module>
|
<module>samples/client/petstore/kotlin-gson/</module>
|
||||||
<module>samples/client/petstore/kotlin-nonpublic/</module>
|
<module>samples/client/petstore/kotlin-nonpublic/</module>
|
||||||
|
<module>samples/client/petstore/kotlin-nullable/</module>
|
||||||
<module>samples/client/petstore/kotlin-okhttp3/</module>
|
<module>samples/client/petstore/kotlin-okhttp3/</module>
|
||||||
<module>samples/client/petstore/kotlin-threetenbp/</module>
|
<module>samples/client/petstore/kotlin-threetenbp/</module>
|
||||||
<module>samples/client/petstore/kotlin-string/</module>
|
<module>samples/client/petstore/kotlin-string/</module>
|
||||||
|
<module>samples/client/petstore/kotlin-moshi-codegen/</module>
|
||||||
<!-- servers -->
|
<!-- servers -->
|
||||||
<module>samples/server/petstore/erlang-server</module>
|
<module>samples/server/petstore/erlang-server</module>
|
||||||
<module>samples/server/petstore/jaxrs/jersey2</module>
|
<module>samples/server/petstore/jaxrs/jersey2</module>
|
||||||
|
46
samples/client/petstore/kotlin-moshi-codegen/pom.xml
Normal file
46
samples/client/petstore/kotlin-moshi-codegen/pom.xml
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
<project>
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<groupId>io.swagger</groupId>
|
||||||
|
<artifactId>KotlinMoshiPetstoreClientTests</artifactId>
|
||||||
|
<packaging>pom</packaging>
|
||||||
|
<version>1.0-SNAPSHOT</version>
|
||||||
|
<name>Kotlin Moshi Petstore Client</name>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<artifactId>maven-dependency-plugin</artifactId>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>copy-dependencies</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<outputDirectory>${project.build.directory}</outputDirectory>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
|
<artifactId>exec-maven-plugin</artifactId>
|
||||||
|
<version>1.2.1</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>bundle-test</id>
|
||||||
|
<phase>integration-test</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>exec</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<executable>gradle</executable>
|
||||||
|
<arguments>
|
||||||
|
<argument>test</argument>
|
||||||
|
</arguments>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</project>
|
@ -2,7 +2,6 @@ package org.openapitools.client.infrastructure
|
|||||||
|
|
||||||
import com.squareup.moshi.Moshi
|
import com.squareup.moshi.Moshi
|
||||||
import com.squareup.moshi.adapters.Rfc3339DateJsonAdapter
|
import com.squareup.moshi.adapters.Rfc3339DateJsonAdapter
|
||||||
|
|
||||||
import java.util.Date
|
import java.util.Date
|
||||||
|
|
||||||
object Serializer {
|
object Serializer {
|
||||||
@ -13,6 +12,5 @@ object Serializer {
|
|||||||
.add(LocalDateAdapter())
|
.add(LocalDateAdapter())
|
||||||
.add(UUIDAdapter())
|
.add(UUIDAdapter())
|
||||||
.add(ByteArrayAdapter())
|
.add(ByteArrayAdapter())
|
||||||
|
|
||||||
.build()
|
.build()
|
||||||
}
|
}
|
||||||
|
46
samples/client/petstore/kotlin-nullable/pom.xml
Normal file
46
samples/client/petstore/kotlin-nullable/pom.xml
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
<project>
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<groupId>io.swagger</groupId>
|
||||||
|
<artifactId>KotlinNullablePetstoreClientTests</artifactId>
|
||||||
|
<packaging>pom</packaging>
|
||||||
|
<version>1.0-SNAPSHOT</version>
|
||||||
|
<name>Kotlin Nullable Petstore Client</name>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<artifactId>maven-dependency-plugin</artifactId>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>copy-dependencies</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<outputDirectory>${project.build.directory}</outputDirectory>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
|
<artifactId>exec-maven-plugin</artifactId>
|
||||||
|
<version>1.2.1</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>bundle-test</id>
|
||||||
|
<phase>integration-test</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>exec</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<executable>gradle</executable>
|
||||||
|
<arguments>
|
||||||
|
<argument>test</argument>
|
||||||
|
</arguments>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</project>
|
Loading…
x
Reference in New Issue
Block a user