language: java

env:
  - MVN_EXCLUDE_MODULES='-pl !cs-vmware' JAVA_OPTS='-Xmx2048m -Xms512m' M2_HOME=${HOME}/apache-maven-3.5.0 PATH=${M2_HOME}/bin:${PATH}

jdk:
  - openjdk9

cache:
  directories:
    - "$HOME/.m2/repository"
    - "$HOME/apache-maven-3.5.0"

before_script:
  - "echo $JAVA_OPTS"

before_install:
  - if [ ! -d "${M2_HOME}"/bin ]; then curl https://archive.apache.org/dist/maven/maven-3/3.5.0/binaries/apache-maven-3.5.0-bin.tar.gz | tar zxf - -C "${HOME}"; fi

install:
  - "echo $MVN_EXCLUDE_MODULES"
  - mvn install -T 2.0C -DskipTests=true -DrepoToken=${repoToken} -Dmaven.javadoc.skip=true -B -V ${MVN_EXCLUDE_MODULES}

script:
  - "echo $MVN_EXCLUDE_MODULES"
  - mvn test -T 2.0C -B ${MVN_EXCLUDE_MODULES}

after_success:
  - mvn clean -T 2.0C cobertura:cobertura org.eluder.coveralls:coveralls-maven-plugin:report ${MVN_EXCLUDE_MODULES}

dist: trusty

language: java

env:
  - MVN_EXCLUDE_MODULES='-pl !cs-vmware' JAVA_OPTS='-Xmx2048m -Xms512m' M2_HOME=${HOME}/apache-maven-3.5.0 PATH=${M2_HOME}/bin:${PATH}

jdk:
  - oraclejdk8
  - openjdk8

cache:
  directories:
    - "$HOME/.m2/repository"
    - "$HOME/apache-maven-3.5.0"

before_script:
  - "echo $JAVA_OPTS"

before_install:
  - rm ~/.m2/settings.xml
  - if [ ! -d "${M2_HOME}"/bin ]; then curl https://archive.apache.org/dist/maven/maven-3/3.5.0/binaries/apache-maven-3.5.0-bin.tar.gz | tar zxf - -C "${HOME}"; fi

install:
  - "echo $MVN_EXCLUDE_MODULES"
  - mvn install -T 2.0C -DskipTests=true -DrepoToken=${repoToken} -Dmaven.javadoc.skip=true -B -V ${MVN_EXCLUDE_MODULES}

script:
  - "echo $MVN_EXCLUDE_MODULES"
  - mvn test -T 2.0C -B ${MVN_EXCLUDE_MODULES}

after_success:
  - mvn clean -T 2.0C cobertura:cobertura org.eluder.coveralls:coveralls-maven-plugin:report ${MVN_EXCLUDE_MODULES}

Revert to old settings but remove settings.xml before installing
Revert to old settings but remove settings.xml before installing

Signed-off-by: Ionut Mihai Marisca <532e3029dabf6bee1034f4e02a41c115daa11f19@microfocus.com>
