1 Star 0 Fork 0

billsegates / swagger-codegen

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.travis.yml.bash 875 Bytes
一键复制 编辑 原始数据 按行查看 历史
frantuma 提交于 2019-10-08 08:47 . travis dist trusty - openjdk8
sudo: required
language: java
dist: trusty
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
1
https://gitee.com/billhuhongbin/swagger-codegen.git
git@gitee.com:billhuhongbin/swagger-codegen.git
billhuhongbin
swagger-codegen
swagger-codegen
master

搜索帮助