summaryrefslogtreecommitdiffstats
path: root/csarvalidation/pom.xml
diff options
context:
space:
mode:
authorBartosz Gardziejewski <bartosz.gardziejewski@nokia.com>2020-10-21 10:34:42 +0200
committerBartosz Gardziejewski <bartosz.gardziejewski@nokia.com>2020-12-01 14:22:29 +0100
commit97f2131b263b4beed8fe4b2dd3c07b44edbac396 (patch)
tree004957710ff2cea79c011efea093e8838849ac95 /csarvalidation/pom.xml
parent35d4e259c80c9edeb362de0af9bd77bd3f4412b0 (diff)
Add python script to generate table with active validation rules.
Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: I4c944fe6c5bd3cb7f8807d954cc85ad16743841b Issue-ID: VNFSDK-696
Diffstat (limited to 'csarvalidation/pom.xml')
-rw-r--r--csarvalidation/pom.xml68
1 files changed, 67 insertions, 1 deletions
diff --git a/csarvalidation/pom.xml b/csarvalidation/pom.xml
index ff4cb54..7af3f8b 100644
--- a/csarvalidation/pom.xml
+++ b/csarvalidation/pom.xml
@@ -50,6 +50,8 @@
<maven-war-plugin.version>2.6</maven-war-plugin.version>
<maven-dependency-plugin.version>3.0.0</maven-dependency-plugin.version>
<mockito-core.version>3.5.0</mockito-core.version>
+ <exec-maven-plugin.version>1.6.0</exec-maven-plugin.version>
+ <skipDocsGeneration>true</skipDocsGeneration>
</properties>
<dependencies>
@@ -160,8 +162,72 @@
<build>
<finalName>${project.artifactId}-${project.version}</finalName>
-
<plugins>
+
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <version>${exec-maven-plugin.version}</version>
+ <executions>
+ <execution>
+ <configuration>
+ <skip>${skipDocsGeneration}</skip>
+ <executable>pip3</executable>
+ <workingDirectory>./python</workingDirectory>
+ <arguments>
+ <argument>install</argument>
+ <argument>-r</argument>
+ <argument>./requirements.txt</argument>
+ </arguments>
+ </configuration>
+ <id>python-requirements</id>
+ <phase>initialize</phase>
+ <goals>
+ <goal>exec</goal>
+ </goals>
+ </execution>
+ <execution>
+ <configuration>
+ <skip>${skipDocsGeneration}</skip>
+ <executable>python3</executable>
+ <workingDirectory>./python/</workingDirectory>
+ <environmentVariables>
+ <PYTHONPATH>./main</PYTHONPATH>
+ </environmentVariables>
+ <arguments>
+ <argument>-m</argument>
+ <argument>unittest</argument>
+ <argument>discover</argument>
+ <argument>./test</argument>
+ </arguments>
+ </configuration>
+ <id>python-test</id>
+ <phase>test</phase>
+ <goals>
+ <goal>exec</goal>
+ </goals>
+ </execution>
+ <execution>
+ <configuration>
+ <skip>${skipDocsGeneration}</skip>
+ <executable>python3</executable>
+ <workingDirectory>./python/main</workingDirectory>
+ <arguments>
+ <argument>generate_active_validation_rules_table.py</argument>
+ </arguments>
+ <environmentVariables>
+ <OUTPUT_DIRECTORY>${project.build.directory}/generated-docs/${onap.release}/</OUTPUT_DIRECTORY>
+ </environmentVariables>
+ </configuration>
+ <id>python_build</id>
+ <phase>generate-resources</phase>
+ <goals>
+ <goal>exec</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>