Skip to content

Commit

Permalink
Use maven-3.5.0 in travis builds (apache#492)
Browse files Browse the repository at this point in the history
  • Loading branch information
merlimat authored Jun 19, 2017
1 parent b4ad43e commit e1a703f
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,26 @@ cache:
directories:
- $HOME/.m2
- $HOME/pulsar-dep
- "$HOME/apache-maven-3.5.0"

# Reconstruct the gpg keys to sign the artifacts
before_deploy:
- echo $GPG_SECRET_KEYS | base64 --decode | $GPG_EXECUTABLE --import --batch || true
- echo $GPG_OWNERTRUST | base64 --decode | $GPG_EXECUTABLE --import-ownertrust --batch || true

# Upgrade to maven 3.5.0
before_install:
- export M2_HOME=$HOME/apache-maven-3.5.0
- 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
- export PATH=$M2_HOME/bin:$PATH

install:
- sudo bash -x $TRAVIS_BUILD_DIR/pulsar-client-cpp/travis-build.sh $HOME/pulsar-dep $TRAVIS_BUILD_DIR dep

after_success:
- sudo bash -x $TRAVIS_BUILD_DIR/pulsar-client-cpp/travis-build.sh $HOME/pulsar-dep $TRAVIS_BUILD_DIR compile
script:
# Build Java and C++
- mvn license:check test && \
sudo bash -x $TRAVIS_BUILD_DIR/pulsar-client-cpp/travis-build.sh $HOME/pulsar-dep $TRAVIS_BUILD_DIR compile

deploy:
-
Expand Down

0 comments on commit e1a703f

Please sign in to comment.