forked from phoedos/pmd
Be explicit about the travis steps
This commit is contained in:
parent
4a73f1d4f1
commit
76a7d28d80
20
.travis.yml
20
.travis.yml
@ -1,9 +1,11 @@
|
||||
sudo: false
|
||||
language: java
|
||||
jdk: oraclejdk8
|
||||
before_install:
|
||||
- echo "MAVEN_OPTS='-Xms1g -Xmx1g'" > "$HOME/.mavenrc"
|
||||
- mkdir -p "$HOME/.m2"
|
||||
- cp .travis/travis-toolchains.xml "$HOME/.m2/toolchains.xml"
|
||||
install: mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
|
||||
before_script:
|
||||
- SHOULD_DEPLOY=no
|
||||
- '[ "${TRAVIS_SECURE_ENV_VARS}" = "true" ] && [ "${TRAVIS_PULL_REQUEST}" = "false" ] && SHOULD_DEPLOY=yes || ( [ "${SHOULD_DEPLOY}" != "yes" ] && echo "Skipping Deploy" )'
|
||||
@ -12,20 +14,28 @@ script:
|
||||
- '[ "${SHOULD_DEPLOY}" = "yes" ] && mvn deploy --settings .travis/travis-settings.xml || ( [ "${SHOULD_DEPLOY}" != "yes" ] && echo "Skipping Deploy" )'
|
||||
- '[ "${SHOULD_DEPLOY}" = "yes" ] || mvn verify'
|
||||
- '[ "${SHOULD_DEPLOY}" = "yes" ] && mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent package sonar:sonar -Dsonar.host.url=https://sonarqube.com -Dsonar.login=${SONAR_TOKEN} || ( [ "${SHOULD_DEPLOY}" != "yes" ] && echo "Skipping Sonar" )'
|
||||
after_success: true
|
||||
|
||||
|
||||
before_deploy: true
|
||||
deploy:
|
||||
skip_cleanup: true
|
||||
on:
|
||||
tags: true
|
||||
condition: "${TRAVIS_SECURE_ENV_VARS} = true"
|
||||
- provider: script
|
||||
script: bash .travis/travis-deploy.sh
|
||||
skip_cleanup: true
|
||||
on:
|
||||
tags: true
|
||||
condition: "${TRAVIS_SECURE_ENV_VARS} = true"
|
||||
- provider: releases
|
||||
api_key: ${GITHUB_OAUTH_TOKEN}
|
||||
file:
|
||||
- "pmd-dist/target/pmd-*.zip"
|
||||
- "target/pmd-doc-*.zip"
|
||||
# TODO : This won't copy the changelog to GitHub
|
||||
# TODO : This won't copy the changelog to GitHub
|
||||
skip_cleanup: true
|
||||
on:
|
||||
tags: true
|
||||
condition: "${TRAVIS_SECURE_ENV_VARS} = true"
|
||||
after_deploy: true
|
||||
|
||||
notifications:
|
||||
email:
|
||||
|
Loading…
x
Reference in New Issue
Block a user