From 8eaedf976f62daeeff77541e0d4d92614695e4b4 Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Mon, 6 Oct 2014 11:22:20 +0100 Subject: [PATCH] Automate docs build with shared parent pom --- .travis.yml | 2 +- pom.xml | 88 +++++++++++++++++------------------------------------ 2 files changed, 29 insertions(+), 61 deletions(-) diff --git a/.travis.yml b/.travis.yml index 355489d..72f0d5a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,7 +2,7 @@ language: java 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 install: - - mvn install -q -U -DskipTests=true -Dmaven.test.redirectTestOutputToFile=true + - mvn install -P docs -q -U -DskipTests=true -Dmaven.test.redirectTestOutputToFile=true - ./src/main/asciidoc/ghpages.sh script: mvn --settings .settings.xml deploy -nsu -Dmaven.test.redirectTestOutputToFile=true env: diff --git a/pom.xml b/pom.xml index e04c95e..fff2852 100644 --- a/pom.xml +++ b/pom.xml @@ -5,9 +5,9 @@ spring-cloud-cli-parent 1.0.0.BUILD-SNAPSHOT - org.springframework.boot - spring-boot-parent - 1.1.5.RELEASE + org.springframework.cloud + spring-cloud-build + 1.0.0.BUILD-SNAPSHOT pom @@ -19,6 +19,7 @@ http://www.spring.io + spring-cloud-cli ${basedir}/.. @@ -43,61 +44,28 @@ - - - - maven-antrun-plugin - - - org.jruby - jruby-complete - 1.7.12 - - - - - readme - process-resources - - run - - false - - - - - - - - - - - - - - org.asciidoctor - asciidoctor-maven-plugin - 1.5.0 - - - generate- - process-resources - - process-asciidoc - - false - - spring-cloud-cli.adoc - html - article - - true - ${project.version} - - - - - - - + + + docs + + + + org.asciidoctor + asciidoctor-maven-plugin + false + + + org.apache.maven.plugins + maven-antrun-plugin + false + + + org.codehaus.mojo + build-helper-maven-plugin + false + + + + +