1234567891011121314151617181920212223242526272829303132 |
- sudo: false
- cache:
- directories:
- - $HOME/.m2
- language: java
- jdk:
- - oraclejdk8
- before_install:
- - git config user.name "$GIT_NAME"
- - git config user.email "$GIT_EMAIL"
- - git config credential.helper "store --file=.git/credentials"
- - echo "https://$GH_TOKEN:@github.com" > .git/credentials
- - gem install asciidoctor
- install:
- - ./mvnw install -P docs -q -U -DskipTests=true -Dmaven.test.redirectTestOutputToFile=true
- - '[ "${MVN_GOAL}" == "deploy" ] && ./docs/src/main/asciidoc/ghpages.sh || echo "Not updating docs"'
- script:
- - './mvnw -s .settings.xml $MVN_GOAL $MVN_PROFILE -nsu -Dmaven.test.redirectTestOutputToFile=true'
- env:
- global:
- - GIT_NAME="Dave Syer"
- - GIT_EMAIL=dsyer@pivotal.io
- - CI_DEPLOY_USERNAME=buildmaster
- - FEATURE_BRANCH=$(echo ${TRAVIS_BRANCH} | grep -q "^.*/.*$" && echo true || echo false)
- - SPRING_CLOUD_BUILD=$(echo ${TRAVIS_REPO_SLUG} | grep -q "^spring-cloud/.*$" && echo true || echo false)
- - MVN_GOAL=$([ "${TRAVIS_PULL_REQUEST}" == "false" -a "${TRAVIS_TAG}" == "" -a "${FEATURE_BRANCH}" == "false" -a "${SPRING_CLOUD_BUILD}" == "true" ] && echo verify || echo install)
- - VERSION=$(mvn validate | grep Building | head -1 | sed -e 's/.* //')
- - MILESTONE=$(echo ${VERSION} | egrep 'M|RC' && echo true || echo false)
- - MVN_PROFILE=$([ "${MILESTONE}" == "true" ] && echo -P milestone)
- - MAVEN_SKIP_RC=true
- - MAVEN_OPTS="-Xmx2g -XX:MaxPermSize=256M"
- - secure: "RlAkhuBBoUbd0QEp69la+sd0QfOZhg7cxs/BYiw5Z0Bvl0DCtDJCtXoezQXpeQkIkLzIWa8WjJSkM9aL9aP37bg/GzY3O4B2nuF5rw7otw0zua223ioent3MNbrqk+v2whBlOwCV4/LY3Qod3XvFnLRAQmNWnzSenwcJ4qUxP1Q="
|