Skip to content

Commit

Permalink
Experiment (#285)
Browse files Browse the repository at this point in the history
* Use docker to start mongodb

modified:   .travis.yml

* Add mongodb 3.4 and 3.6 to the travisci build matrix

* Deploy only if $MAVEN_DEPLOY == true
  • Loading branch information
mkjsix authored and Maurizio Turatti committed May 15, 2018
1 parent db1617a commit 5bb0ef2
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,16 @@ notifications:
on_success: always
slack:
secure: "IeoyrbTPjPtopkmTFbcCzgy+9q8MMzhla9lXhZYdqsbn19KKe4UKNp0Cu0SY601ss586Lw4jsegvba6LFF3bi3j4aK0ZITtGJ4PYGvYByh3O7zi4Y0K2RUeYU1CfTIl18QBHcAIjQSmKLJPnyN9Y5Y4/4KhfWTqXy7tvkB36Oys="

addons:
apt:
sources:
- mongodb-3.4-trusty
packages:
- mongodb-org-server

cache:
directories:
- '$HOME/.m2'

services:
- mongodb
- docker

before_install:
- docker run -d -p 27017:27017 mongo:$MONGO
- ./bin/before-deploy.sh

install: true
Expand All @@ -36,12 +29,16 @@ before_script:
- git submodule update --init --recursive

script:
- mvn clean install -DskipITs=false
- docker ps
- mvn clean verify -DskipITs=false

after_success:
- ./bin/maven-deploy.sh
- if [[ "$MAVEN_DEPLOY" == true ]]; then ./bin/maven-deploy.sh; fi

env:
matrix:
- MONGO=3.4
- MONGO=3.6 MAVEN_DEPLOY=true
global:
- secure: "rlLQCDykTqV7/EC+kTCw5JpYbuZwk0Neq5q1kRQ6hjcUYRdgjPJretVg+1e5+GcGOH4/Z/aOGdQrk1HtPW6tE+ePIUDAUwuLX2+6AUt2FqIqumYoJxYR7rsw+THkjiPaopB7qmWOUJ1vec7QCEiaGexYcjs3j6mv//SbnUksY2w="
- secure: "t4tS+6EAC9nuE9SOKMfooux34usyPY2oBt0/737A2o9y3LXgy/jt0hyx09W4Gc1ZHq8QYoEiwHU40rlo2KWcxPKK/e4U/dZ1ne5OBJLKt5dhGr/PwaO0rVa7039zgQRn1VN+ayx92AfQCZMyA7iTrVDrM/2lxvDww0UYyZmViaA="
Expand Down

0 comments on commit 5bb0ef2

Please sign in to comment.