Automate docs build with shared parent pom
This commit is contained in:
@@ -2,7 +2,7 @@ language: java
|
|||||||
before_install: git config user.name "$GIT_NAME" && git config user.email "$GIT_EMAIL"
|
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
|
&& git config credential.helper "store --file=.git/credentials" && echo "https://$GH_TOKEN:@github.com" > .git/credentials
|
||||||
install:
|
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
|
- ./src/main/asciidoc/ghpages.sh
|
||||||
script: mvn --settings .settings.xml deploy -nsu -Dmaven.test.redirectTestOutputToFile=true
|
script: mvn --settings .settings.xml deploy -nsu -Dmaven.test.redirectTestOutputToFile=true
|
||||||
env:
|
env:
|
||||||
|
|||||||
88
pom.xml
88
pom.xml
@@ -5,9 +5,9 @@
|
|||||||
<artifactId>spring-cloud-cli-parent</artifactId>
|
<artifactId>spring-cloud-cli-parent</artifactId>
|
||||||
<version>1.0.0.BUILD-SNAPSHOT</version>
|
<version>1.0.0.BUILD-SNAPSHOT</version>
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.cloud</groupId>
|
||||||
<artifactId>spring-boot-parent</artifactId>
|
<artifactId>spring-cloud-build</artifactId>
|
||||||
<version>1.1.5.RELEASE</version>
|
<version>1.0.0.BUILD-SNAPSHOT</version>
|
||||||
<relativePath/>
|
<relativePath/>
|
||||||
</parent>
|
</parent>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
@@ -19,6 +19,7 @@
|
|||||||
<url>http://www.spring.io</url>
|
<url>http://www.spring.io</url>
|
||||||
</organization>
|
</organization>
|
||||||
<properties>
|
<properties>
|
||||||
|
<docs.main>spring-cloud-cli</docs.main>
|
||||||
<main.basedir>${basedir}/..</main.basedir>
|
<main.basedir>${basedir}/..</main.basedir>
|
||||||
</properties>
|
</properties>
|
||||||
<modules>
|
<modules>
|
||||||
@@ -43,61 +44,28 @@
|
|||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</dependencyManagement>
|
</dependencyManagement>
|
||||||
<build>
|
<profiles>
|
||||||
<plugins>
|
<profile>
|
||||||
<plugin>
|
<id>docs</id>
|
||||||
<artifactId>maven-antrun-plugin</artifactId>
|
<build>
|
||||||
<dependencies>
|
<plugins>
|
||||||
<dependency>
|
<plugin>
|
||||||
<groupId>org.jruby</groupId>
|
<groupId>org.asciidoctor</groupId>
|
||||||
<artifactId>jruby-complete</artifactId>
|
<artifactId>asciidoctor-maven-plugin</artifactId>
|
||||||
<version>1.7.12</version>
|
<inherited>false</inherited>
|
||||||
</dependency>
|
</plugin>
|
||||||
</dependencies>
|
<plugin>
|
||||||
<executions>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<execution>
|
<artifactId>maven-antrun-plugin</artifactId>
|
||||||
<id>readme</id>
|
<inherited>false</inherited>
|
||||||
<phase>process-resources</phase>
|
</plugin>
|
||||||
<goals>
|
<plugin>
|
||||||
<goal>run</goal>
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
</goals>
|
<artifactId>build-helper-maven-plugin</artifactId>
|
||||||
<inherited>false</inherited>
|
<inherited>false</inherited>
|
||||||
<configuration>
|
</plugin>
|
||||||
<tasks>
|
</plugins>
|
||||||
<java classname="org.jruby.Main" failonerror="yes">
|
</build>
|
||||||
<arg value="${basedir}/src/main/ruby/generate_readme.sh" />
|
</profile>
|
||||||
<arg value="-o" />
|
</profiles>
|
||||||
<arg value="${basedir}/README.adoc" />
|
|
||||||
</java>
|
|
||||||
</tasks>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.asciidoctor</groupId>
|
|
||||||
<artifactId>asciidoctor-maven-plugin</artifactId>
|
|
||||||
<version>1.5.0</version>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>generate-</id>
|
|
||||||
<phase>process-resources</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>process-asciidoc</goal>
|
|
||||||
</goals>
|
|
||||||
<inherited>false</inherited>
|
|
||||||
<configuration>
|
|
||||||
<sourceDocumentName>spring-cloud-cli.adoc</sourceDocumentName>
|
|
||||||
<backend>html</backend>
|
|
||||||
<doctype>article</doctype>
|
|
||||||
<attributes>
|
|
||||||
<docinfo>true</docinfo>
|
|
||||||
<spring-cloud-version>${project.version}</spring-cloud-version>
|
|
||||||
</attributes>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
</project>
|
</project>
|
||||||
|
|||||||
Reference in New Issue
Block a user