openapi-generator/.travis.yml

28 lines
741 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-07-15 01:57:24 +00:00
cache:
directories:
- $HOME/.m2
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-05-20 06:15:04 +00:00
- npm install -g typescript
2016-06-11 02:38:22 +00:00
- sudo pip install virtualenv
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:26:19 +00:00
- if [ $DOCKER_HUB_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