From 2b4c453717f1e3111e53e84a2c4c768d3108efef Mon Sep 17 00:00:00 2001 From: Srikanta <51379715+srnagar@users.noreply.github.com> Date: Wed, 4 Dec 2019 16:49:48 -0800 Subject: [PATCH] Add maven profile to verify readme (#6625) * Add maven profile to verify readme * Revert changes to readme to pass the CI pipeline * Separate profiles for Windows --- pom.client.xml | 190 +++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 167 insertions(+), 23 deletions(-) diff --git a/pom.client.xml b/pom.client.xml index b5284abab88fe..b6b02919cf18d 100644 --- a/pom.client.xml +++ b/pom.client.xml @@ -936,29 +936,29 @@ - org.codehaus.mojo - exec-maven-plugin - 1.2.1 - - - generate-overview-from-readme - prepare-package - - exec - - - - - python - ${project.basedir} - - ../../../eng/pipelines/scripts/generate_overview_from_readme.py - --rf - ${project.basedir}/README.md - --v - ${project.version} - - + org.codehaus.mojo + exec-maven-plugin + 1.2.1 + + + generate-overview-from-readme + prepare-package + + exec + + + + + python + ${project.basedir} + + ../../../eng/pipelines/scripts/generate_overview_from_readme.py + --rf + ${project.basedir}/README.md + --v + ${project.version} + + @@ -972,6 +972,150 @@ + + + + readme-codesnippet-windows + + + readme-codesnippet-windows + + + + + + org.codehaus.mojo + exec-maven-plugin + 1.2.1 + + + code-snippet-for-readme-windows + prepare-package + + exec + + + npx.cmd + + embedme + sdk/*/azure-*/README.md + + + + + + + + + + + + readme-codesnippet + + + readme-codesnippet + + + + + + org.codehaus.mojo + exec-maven-plugin + 1.2.1 + + + code-snippet-for-readme + prepare-package + + exec + + + npx + + embedme + sdk/*/azure-*/README.md + + + + + + + + + + + + verify-readme-windows + + + windows + + + + + + org.codehaus.mojo + exec-maven-plugin + 1.2.1 + + + verify-readme-codesnippet-windows + prepare-package + + exec + + + npx.cmd + + embedme + --verify + sdk/*/azure-*/README.md + + + + + + + + + + + + verify-readme + + + !windows + + + + + + org.codehaus.mojo + exec-maven-plugin + 1.2.1 + + + verify-readme-codesnippet + prepare-package + + exec + + + npx + + embedme + --verify + sdk/*/azure-*/README.md + + + + + + + +