openapi-generator/.travis.yml

22 lines
641 B
YAML
Raw Normal View History

2016-01-05 04:25:45 +00:00
sudo: required
2014-09-19 21:38:00 +00:00
language: java
jdk:
2016-01-05 20:29:48 +00:00
- oraclejdk7
2016-01-07 21:01:22 +00:00
- oraclejdk8
2016-01-06 17:31:06 +00:00
2016-01-05 12:08:52 +00:00
services:
- docker
2016-01-06 17:31:06 +00:00
2016-01-05 12:08:52 +00:00
before_install:
# required when sudo: required for the Ruby petstore tests
- gem install bundler
2016-01-06 17:31:06 +00:00
2016-01-05 12:08:52 +00:00
install:
2016-01-06 17:31:06 +00:00
2016-01-05 04:25:45 +00:00
script:
- mvn verify -Psamples
2016-01-08 05:11:00 +00:00
- if [ $DOCKERHUB_USERNAME ]; then docker login --email=$DOCKER_HUB_EMAIL --username=$DOCKER_HUB_USERNAME --password=$DOCKER_HUB_PASSWORD && docker build -t $DOCKER_IMAGE_NAME ./modules/swagger-generator && if [ ! -z "$TRAVIS_TAG" ]; then docker tag $DOCKER_IMAGE_NAME:latest $DOCKER_IMAGE_NAME:$TRAVIS_TAG; fi && docker push $DOCKER_IMAGE_NAME; fi
2016-01-06 17:31:06 +00:00
2016-01-05 04:25:45 +00:00
env:
- DOCKER_IMAGE_NAME=swaggerapi/swagger-generator