language: java
before_cache:
  - rm -f  $HOME/.gradle/caches/modules-2/modules-2.lock
  - rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
  directories:
    - $HOME/.gradle/caches/
    - $HOME/.gradle/wrapper/
jdk:
  - oraclejdk8

#TODO:Needed in production template I cant remember if we need it here
#before_script:
#    - npm install -g @angular/cli

services: mongodb

language: java
before_cache:
  - rm -f  $HOME/.gradle/caches/modules-2/modules-2.lock
  - rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
  directories:
    - $HOME/.gradle/caches/
    - $HOME/.gradle/wrapper/
jdk:
    - oraclejdk8

env:
    - MONGODB=3.4.7

install:
    - wget http://fastd1.mongodb.org/linux/mongodb-linux-x86_64-${MONGODB}.tgz
    - tar xzf mongodb-linux-x86_64-${MONGODB}.tgz
    - ${PWD}/mongodb-linux-x86_64-${MONGODB}/bin/mongodb --version

before_script:
    - mkdir ${PWD}/mongodb-linux-x86_64-${MONGODB}/data
    - ${PWD}/mongodb-linux-x86_64-${MONGODB}/bin/mongod --dbpath ${PWD}/mongodb-linux-x86_64-${MONGODB}/data --logpath ${PWD}/mongodb-linux-x86_64-${MONGODB}/mongodb.log --fork
     - npm install -g @angular/cli


Change Travis to use newer version of Mongo
Change Travis to use newer version of Mongo
