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-05 12:08:52 +00:00
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
before_install:
|
|
|
|
# required when sudo: required for the Ruby petstore tests
|
|
|
|
- gem install bundler
|
|
|
|
install:
|
|
|
|
- docker login --email=$DOCKER_HUB_EMAIL --username=$DOCKER_HUB_USERNAME --password=$DOCKER_HUB_PASSWORD
|
2016-01-05 04:25:45 +00:00
|
|
|
script:
|
|
|
|
- mvn verify -Psamples
|
|
|
|
- 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
|
|
|
|
env:
|
|
|
|
- DOCKER_IMAGE_NAME=swaggerapi/swagger-generator
|