You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.3 KiB
39 lines
1.3 KiB
#cache: |
|
# directories: |
|
# - $HOME/.m2 |
|
language: java |
|
sudo: required |
|
# dist: trusty |
|
jdk: |
|
- oraclejdk8 |
|
services: |
|
- rabbitmq |
|
- docker |
|
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 |
|
- ./docs/src/main/asciidoc/ghpages.sh |
|
env: |
|
global: |
|
- GIT_NAME="Dave Syer" |
|
- GIT_EMAIL=dsyer@pivotal.io |
|
- CI_DEPLOY_USERNAME=buildmaster |
|
- secure: aeLXRC5oFSddwnZt1/7G2/OHr7jDbxz0ET7sej3I+eSbe3N5vbzQ6FC08es4l89l54ciXd90I1g2BMw7DTYKOO373FP78XPdAEbifJTU4DGd6fCELmoTtUPhjunBIk7E49hisPbv82892IYYA7qi/hzG548cPyZ1IgiJjq0NCsc= |
|
- TERM=dumb |
|
script: |
|
- | |
|
echo "Current Branch: ${TRAVIS_BRANCH}" |
|
echo "Pull Request: ${TRAVIS_PULL_REQUEST}" |
|
if [ "${TRAVIS_BRANCH}" = master ] && [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then |
|
echo "[Publishing] Pushing snapshot to Sonatype" |
|
./mvnw -s .settings.xml deploy -P release -nsu -Dmaven.test.redirectTestOutputToFile=false |
|
else |
|
echo "[Installing] Intalling snapshot to local maven repo" |
|
./mvnw install -nsu -Dmaven.test.redirectTestOutputToFile=false |
|
fi |
|
- jdk_switcher use oraclejdk8 && sh -e scripts/runAcceptanceTests.sh
|
|
|