mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-10-14 08:23:45 +00:00
[Swift] Enhancements to iOS tests (#4521)
* update .travis.yml.ios * test ios travis * skip javadoc error * use xcode 10.3 * remove --no-ri * remove --no-rdoc * use ios 12.4 * update to ios 13.1
This commit is contained in:
parent
8766531c56
commit
40d7b58666
@ -1,55 +1,25 @@
|
|||||||
sudo: required
|
sudo: required
|
||||||
language: objective-c
|
language: objective-c
|
||||||
osx_image: xcode8.1
|
osx_image: xcode10.3
|
||||||
cache:
|
|
||||||
directories:
|
|
||||||
- $HOME/.m2
|
|
||||||
- $HOME/.ivy2
|
|
||||||
- $HOME/.gradle/caches/
|
|
||||||
- $HOME/.gradle/wrapper/
|
|
||||||
- $HOME/.stack
|
|
||||||
- $HOME/samples/client/petstore/php/OpenAPIToolsClient-php/vendor
|
|
||||||
- $HOME/samples/client/petstore/ruby/venodr/bundle
|
|
||||||
- $HOME/samples/client/petstore/python/.venv/
|
|
||||||
- $HOME/samples/client/petstore/typescript-node/npm/node_modules
|
|
||||||
- $HOME/samples/client/petstore/typescript-node/npm/typings/
|
|
||||||
- $HOME/samples/client/petstore/typescript-fetch/tests/default/node_modules
|
|
||||||
- $HOME/samples/client/petstore/typescript-fetch/tests/default/typings
|
|
||||||
- $HOME/samples/client/petstore/typescript-fetch/builds/default/node_modules
|
|
||||||
- $HOME/samples/client/petstore/typescript-fetch/builds/default/typings
|
|
||||||
- $HOME/samples/client/petstore/typescript-fetch/builds/es6-target/node_modules
|
|
||||||
- $HOME/samples/client/petstore/typescript-fetch/builds/es6-target/typings
|
|
||||||
- $HOME/samples/client/petstore/typescript-fetch/builds/with-npm-version/node_modules
|
|
||||||
- $HOME/samples/client/petstore/typescript-fetch/npm/with-npm-version/typings
|
|
||||||
- $HOME/samples/client/petstore/typescript-angularjs/node_modules
|
|
||||||
- $HOME/samples/client/petstore/typescript-angularjs/typings
|
|
||||||
- $HOME/.cocoapods/repos/master
|
|
||||||
timeout: 1000
|
|
||||||
|
|
||||||
# comment out the host table change to use the public petstore server
|
|
||||||
addons:
|
|
||||||
hosts:
|
|
||||||
- petstore.swagger.io
|
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- export SW=`pwd`
|
- export SW=`pwd`
|
||||||
- rvm list
|
- rvm list
|
||||||
- rvm use 2.3.3
|
#- rvm use 2.3.3
|
||||||
- gem environment
|
- gem environment
|
||||||
- gem install bundler -N --no-ri --no-rdoc
|
- gem install bundler -N
|
||||||
- gem install cocoapods -v 1.2.1 -N --no-ri --no-rdoc
|
- gem install cocoapods -v 1.2.1 -N
|
||||||
- gem install xcpretty -N --no-ri --no-rdoc
|
- gem install xcpretty -N
|
||||||
- pod --version
|
- pod --version
|
||||||
# comment out below to avoid errors
|
# comment out below to avoid errors
|
||||||
#- pod repo update
|
#- pod repo update
|
||||||
- pod setup --silent > /dev/null
|
#- pod setup --silent > /dev/null
|
||||||
- mkdir -p ~/.local/bin
|
#- mkdir -p ~/.local/bin
|
||||||
- export PATH=$HOME/.local/bin:$PATH
|
#- export PATH=$HOME/.local/bin:$PATH
|
||||||
# start local petstore server
|
## start local petstore server
|
||||||
- git clone -b docker --single-branch https://github.com/wing328/swagger-samples
|
#- git clone -b docker --single-branch https://github.com/wing328/swagger-samples
|
||||||
- cd swagger-samples/java/java-jersey-jaxrs
|
#- cd swagger-samples/java/java-jersey-jaxrs
|
||||||
- sudo mvn jetty:run &
|
#- sudo mvn jetty:run &
|
||||||
- cd $SW
|
#- cd $SW
|
||||||
|
|
||||||
# show host table to confirm petstore.swagger.io is mapped to localhost
|
# show host table to confirm petstore.swagger.io is mapped to localhost
|
||||||
- cat /etc/hosts
|
- cat /etc/hosts
|
||||||
@ -64,4 +34,4 @@ before_install:
|
|||||||
|
|
||||||
script:
|
script:
|
||||||
# run integration tests defined in maven pom.xml
|
# run integration tests defined in maven pom.xml
|
||||||
- mvn -q --batch-mode verify -Psamples
|
- mvn -q --batch-mode verify -Psamples.ios -Dmaven.javadoc.skip=true
|
||||||
|
3
pom.xml
3
pom.xml
@ -1308,12 +1308,13 @@
|
|||||||
<module>samples/client/petstore/swift4/default/SwaggerClientTests</module>
|
<module>samples/client/petstore/swift4/default/SwaggerClientTests</module>
|
||||||
<module>samples/client/petstore/swift4/promisekit/SwaggerClientTests</module>
|
<module>samples/client/petstore/swift4/promisekit/SwaggerClientTests</module>
|
||||||
<module>samples/client/petstore/swift4/rxswift/SwaggerClientTests</module>
|
<module>samples/client/petstore/swift4/rxswift/SwaggerClientTests</module>
|
||||||
|
<!-- swift 1.x, 3.x client generators have been deprecated
|
||||||
<module>samples/client/petstore/swift3/default/SwaggerClientTests</module>
|
<module>samples/client/petstore/swift3/default/SwaggerClientTests</module>
|
||||||
<module>samples/client/petstore/swift3/promisekit/SwaggerClientTests</module>
|
<module>samples/client/petstore/swift3/promisekit/SwaggerClientTests</module>
|
||||||
<module>samples/client/petstore/swift3/rxswift/SwaggerClientTests</module>
|
<module>samples/client/petstore/swift3/rxswift/SwaggerClientTests</module>
|
||||||
<module>samples/client/petstore/swift/default/SwaggerClientTests</module>
|
<module>samples/client/petstore/swift/default/SwaggerClientTests</module>
|
||||||
<module>samples/client/petstore/swift/promisekit/SwaggerClientTests</module>
|
<module>samples/client/petstore/swift/promisekit/SwaggerClientTests</module>
|
||||||
<module>samples/client/petstore/swift/rxswift/SwaggerClientTests</module>
|
<module>samples/client/petstore/swift/rxswift/SwaggerClientTests</module>-->
|
||||||
<!-- comment out objc tests as it's timing out
|
<!-- comment out objc tests as it's timing out
|
||||||
<module>samples/client/petstore/objc/default/SwaggerClientTests</module>
|
<module>samples/client/petstore/objc/default/SwaggerClientTests</module>
|
||||||
<module>samples/client/petstore/objc/core-data/SwaggerClientTests</module>-->
|
<module>samples/client/petstore/objc/core-data/SwaggerClientTests</module>-->
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
xcodebuild clean build build-for-testing -workspace "SwaggerClient.xcworkspace" -scheme "SwaggerClient" -destination "platform=iOS Simulator,name=iPhone 8,OS=13.0" && xcodebuild test-without-building -workspace "SwaggerClient.xcworkspace" -scheme "SwaggerClient" -destination "platform=iOS Simulator,name=iPhone 8,OS=13.0" | xcpretty && exit ${PIPESTATUS[0]}
|
xcodebuild clean build build-for-testing -workspace "SwaggerClient.xcworkspace" -scheme "SwaggerClient" -destination "platform=iOS Simulator,name=iPhone 8,OS=12.4" && xcodebuild test-without-building -workspace "SwaggerClient.xcworkspace" -scheme "SwaggerClient" -destination "platform=iOS Simulator,name=iPhone 8,OS=12.4" | xcpretty && exit ${PIPESTATUS[0]}
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
xcodebuild -workspace "SwaggerClient.xcworkspace" -scheme "SwaggerClient" test -destination "platform=iOS Simulator,name=iPhone 8,OS=13.0" | xcpretty && exit ${PIPESTATUS[0]}
|
xcodebuild -workspace "SwaggerClient.xcworkspace" -scheme "SwaggerClient" test -destination "platform=iOS Simulator,name=iPhone 8,OS=13.1" | xcpretty && exit ${PIPESTATUS[0]}
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
xcodebuild -workspace "SwaggerClient.xcworkspace" -scheme "SwaggerClient" test -destination "platform=iOS Simulator,name=iPhone 8,OS=13.0" | xcpretty && exit ${PIPESTATUS[0]}
|
xcodebuild -workspace "SwaggerClient.xcworkspace" -scheme "SwaggerClient" test -destination "platform=iOS Simulator,name=iPhone 8,OS=13.1" | xcpretty && exit ${PIPESTATUS[0]}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user