GithubHelp home page GithubHelp logo

Comments (12)

TuomasMatilainen avatar TuomasMatilainen commented on July 20, 2024 8

Workaround
before_install:

from enterprise-installation.

hanasim avatar hanasim commented on July 20, 2024 4

+1

from enterprise-installation.

tecris avatar tecris commented on July 20, 2024 2

+1

from enterprise-installation.

McFoggy avatar McFoggy commented on July 20, 2024 2

I personnally switched to docker using the following (see it in action in jgitver-maven-plugin for example)

language: bash

sudo: required

services:
  - docker

script:
  - docker run --rm -v $(pwd):/root/sources -w /root/sources maven:3.3.9-jdk-8 mvn -Prun-its clean install

after_failure:
  - find target/it -name *.log -exec echo {} \; -exec cat {} \;

branches:
    except:
        - gh-pages

from enterprise-installation.

TheSnoozer avatar TheSnoozer commented on July 20, 2024 2

@TuomasMatilainen Thanks for the suggestion with before_install!!
That is currently still working.

Note my travis.yml looks like similar (I know it might not be the most compact config but does exactly what I want to test):

language: java
sudo: false
dist: trusty
jdk:
  - oraclejdk9
  - oraclejdk8
  - openjdk7

matrix:
  include:
  - jdk: openjdk7
    env: CUSTOM_MVN_VERION="3.0"
  - jdk: openjdk7
    env: CUSTOM_MVN_VERION="3.1.1"
  - jdk: openjdk7
    env: CUSTOM_MVN_VERION="3.2.5"
  - jdk: openjdk7
    env: CUSTOM_MVN_VERION="3.3.9"
  - jdk: oraclejdk9
    env: CUSTOM_MVN_VERION="3.5.0"

install:
  - if [[ -n "${CUSTOM_MVN_VERION}" ]]; then
      echo "Download Maven ${CUSTOM_MVN_VERION}....";
      if [[ "${CUSTOM_MVN_VERION}" == "3.0" ]]; then
        wget https://archive.apache.org/dist/maven/binaries/apache-maven-3.0-bin.zip || travis_terminate 1;
      else
        wget https://archive.apache.org/dist/maven/maven-3/${CUSTOM_MVN_VERION}/binaries/apache-maven-${CUSTOM_MVN_VERION}-bin.zip || travis_terminate 1;
      fi;
      unzip -qq apache-maven-${CUSTOM_MVN_VERION}-bin.zip || travis_terminate 1;
      export M2_HOME=$PWD/apache-maven-${CUSTOM_MVN_VERION};
      export PATH=$M2_HOME/bin:$PATH;
      mvn -version;
    fi

feel free to use it for whatever project / license

from enterprise-installation.

fsquillace avatar fsquillace commented on July 20, 2024 1

+1

from enterprise-installation.

trojanc avatar trojanc commented on July 20, 2024 1

+1

from enterprise-installation.

TuomasMatilainen avatar TuomasMatilainen commented on July 20, 2024 1

+1

from enterprise-installation.

McFoggy avatar McFoggy commented on July 20, 2024

That would be good especially for maven plugins matrix build, so +1 also for me.

Meanwhile did someone solved that differently?

from enterprise-installation.

colameo avatar colameo commented on July 20, 2024

is this supposed to be available in travis? would be really nice...

from enterprise-installation.

PhilMFischer avatar PhilMFischer commented on July 20, 2024

Is there any news about this idea?

from enterprise-installation.

pingsutw avatar pingsutw commented on July 20, 2024

Is there any news about this feature?

from enterprise-installation.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.