-
Notifications
You must be signed in to change notification settings - Fork 6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Swift3 test cases and add pom.xml, travis config for iOS test (#7608
) * add pom.xml for testing objc, swift * add travis config for testing swift, objc * test swift, objc clients * use ruby 2.4.2 * remove stack * update swift3 petstore * test with xcode9 * remove testing inline additional properties for swift3 * restore travis, pom
- Loading branch information
Showing
32 changed files
with
2,476 additions
and
213 deletions.
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 |
---|---|---|
@@ -0,0 +1,69 @@ | ||
sudo: required | ||
language: objective-c | ||
osx_image: xcode8.1 | ||
cache: | ||
directories: | ||
- $HOME/.m2 | ||
- $HOME/.ivy2 | ||
- $HOME/.gradle/caches/ | ||
- $HOME/.gradle/wrapper/ | ||
- $HOME/.stack | ||
- $HOME/samples/client/petstore/php/SwaggerClient-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: | ||
- export SW=`pwd` | ||
- rvm list | ||
- rvm use 2.3.0 | ||
- gem environment | ||
- gem install bundler -N --no-ri --no-rdoc | ||
- gem install cocoapods -v 1.2.1 -N --no-ri --no-rdoc | ||
- gem install xcpretty -N --no-ri --no-rdoc | ||
- pod --version | ||
# comment out below to avoid errors | ||
#- pod repo update | ||
- pod setup --silent > /dev/null | ||
- mkdir -p ~/.local/bin | ||
- export PATH=$HOME/.local/bin:$PATH | ||
# start local petstore server | ||
- git clone -b docker --single-branch https://github.com/wing328/swagger-samples | ||
- cd swagger-samples/java/java-jersey-jaxrs | ||
- sudo mvn jetty:run & | ||
- cd $SW | ||
|
||
# show host table to confirm petstore.swagger.io is mapped to localhost | ||
- cat /etc/hosts | ||
# show java version | ||
- java -version | ||
# show brew version | ||
- brew --version | ||
# show xcpretty version | ||
- xcpretty -v | ||
# show go version | ||
- go version | ||
# show stack version | ||
- stack --version | ||
|
||
script: | ||
# run integration tests defined in maven pom.xml | ||
- mvn -q --batch-mode verify -Psamples |
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
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
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
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
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
Oops, something went wrong.