-
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.
[Bash] Add test setting for Bash client (#6558)
* add pom.xml and travis.yml for bash * create travis.yml.bak, test .travis.yml.bash * restore travis.yml
- Loading branch information
Showing
2 changed files
with
967 additions
and
0 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,37 @@ | ||
sudo: required | ||
language: java | ||
jdk: | ||
- openjdk8 | ||
|
||
cache: | ||
directories: | ||
- $HOME/.m2 | ||
- $HOME/.ivy2 | ||
|
||
services: | ||
- docker | ||
|
||
addons: | ||
hosts: | ||
- petstore.swagger.io | ||
|
||
before_install: | ||
# to run petstore server locally via docker | ||
- docker pull swaggerapi/petstore | ||
- docker run -d -e SWAGGER_HOST=http://petstore.swagger.io -e SWAGGER_BASE_PATH=/v2 -p 80:8080 swaggerapi/petstore | ||
- docker ps -a | ||
# Add bats test framework and cURL for Bash script integration tests | ||
- sudo add-apt-repository ppa:duggan/bats --yes | ||
- sudo apt-get update -qq | ||
- sudo apt-get install -qq bats | ||
- sudo apt-get install -qq curl | ||
|
||
# show host table to confirm petstore.swagger.io is mapped to localhost | ||
- cat /etc/hosts | ||
|
||
script: | ||
# fail fast | ||
- set -e | ||
# run integration tests defined in maven pom.xml | ||
- cp pom.xml.bash pom.xml | ||
- mvn --batch-mode verify -Psamples |
Oops, something went wrong.