7ad10f8d3f11b58cb43082928ab90887021f4159
[sdc.git] / cucumber-js-test-apis-ci / dev_pom.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0"
2          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4     <modelVersion>4.0.0</modelVersion>
5
6     <artifactId>onboarding-cucumber</artifactId>
7     <name>cucumber-report</name>
8
9     <parent>
10         <groupId>org.openecomp.sdc</groupId>
11         <artifactId>sdc-onboarding</artifactId>
12         <version>1.3.1-SNAPSHOT</version>
13         <relativePath>../onboarding/pom.xml</relativePath>
14     </parent>
15
16     <build>
17         <plugins>
18             <plugin>
19                 <artifactId>maven-clean-plugin</artifactId>
20                 <version>2.6.1</version>
21                 <executions>
22                     <execution>
23                         <id>clean.dist.folder</id>
24                         <phase>clean</phase>
25                         <goals>
26                             <goal>clean</goal>
27                         </goals>
28                         <configuration>
29                             <filesets>
30                                 <fileset>
31                                     <directory>${basedir}/report</directory>
32                                     <includes>
33                                         <include>**/*</include>
34                                     </includes>
35                                 </fileset>
36                                 <fileset>
37                                     <directory>${basedir}/resources/downloads</directory>
38                                     <includes>
39                                         <include>**/*</include>
40                                     </includes>
41                                 </fileset>
42                               <fileset>
43                                 <directory>${basedir}/docs</directory>
44                                 <includes>
45                                   <include>**/*</include>
46                                 </includes>
47                               </fileset>
48                             </filesets>
49                         </configuration>
50                     </execution>
51                 </executions>
52             </plugin>
53
54
55             <plugin>
56                 <artifactId>maven-antrun-plugin</artifactId>
57                 <executions>
58                     <execution>
59                         <id>create-reporting-folders</id>
60                         <phase>generate-sources</phase>
61                         <configuration>
62                             <tasks>
63                                 <echo message="Generate reports and downloads folders"/>
64                                 <mkdir dir="${basedir}/report"/>
65                                 <mkdir dir="${basedir}/resources/downloads"/>
66                             </tasks>
67                         </configuration>
68                         <goals>
69                             <goal>run</goal>
70                         </goals>
71                     </execution>
72                 </executions>
73             </plugin>
74
75             <!-- ============================================= -->
76             <!-- Build the UI module node code -->
77             <!-- ============================================= -->
78             <plugin>
79                 <groupId>com.github.eirslett</groupId>
80                 <artifactId>frontend-maven-plugin</artifactId>
81                 <version>1.6</version>
82
83                 <configuration>
84                     <installDirectory>${project.parent.parent.basedir}</installDirectory>
85                 </configuration>
86
87                 <executions>
88
89                     <execution>
90                         <id>install node and yarn</id>
91                         <goals>
92                             <goal>install-node-and-yarn</goal>
93                         </goals>
94                         <configuration>
95                             <nodeVersion>v9.4.0</nodeVersion>
96                             <yarnVersion>v1.3.2</yarnVersion>
97                         </configuration>
98                     </execution>
99
100                     <execution>
101                         <id>yarn run install</id>
102                         <goals>
103                             <goal>yarn</goal>
104                         </goals>
105                         <configuration>
106                             <arguments>install</arguments>
107                         </configuration>
108                     </execution>
109                   <execution>
110                     <id>yarn run cucumber docs</id>
111                     <goals>
112                       <goal>yarn</goal>
113                     </goals>
114                     <configuration>
115                         <yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven>
116                       <arguments>run cucumber-docs</arguments>
117                     </configuration>
118                   </execution>
119
120                   <execution>
121                     <id>yarn run cucumber test</id>
122                     <goals>
123                       <goal>yarn</goal>
124                     </goals>
125                     <configuration>
126                         <yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven>
127                       <arguments>run test-and-report</arguments>
128                     </configuration>
129                     <phase>test</phase>
130                   </execution>
131
132
133                 </executions>
134             </plugin>
135         </plugins>
136     </build>
137
138 </project>