@@ -140,29 +140,30 @@ Portions Copyright (c) 2017-2018, Chris Fraire <
[email protected] >.
140
140
</goals >
141
141
</execution >
142
142
<execution >
143
- <id >Python lint </id >
143
+ <id >generate python env </id >
144
144
<configuration >
145
- <executable >pylint</executable >
145
+ <executable >python3</executable >
146
+ <workingDirectory >${project.build.directory} </workingDirectory >
146
147
<arguments >
147
- <argument >-E </argument >
148
- <argument >${project.build.sourceDirectory} /opengrok_tools </argument >
149
- <argument >${project.build.directory} /setup.py </argument >
148
+ <argument >-m </argument >
149
+ <argument >venv </argument >
150
+ <argument >env </argument >
150
151
</arguments >
151
152
</configuration >
152
- <phase >verify </phase >
153
+ <phase >test </phase >
153
154
<goals >
154
155
<goal >exec</goal >
155
156
</goals >
156
157
</execution >
157
158
<execution >
158
- <id >generate python env </id >
159
+ <id >Upgrade pip </id >
159
160
<configuration >
160
- <executable >python3 </executable >
161
- <workingDirectory >${project.build.directory} </workingDirectory >
161
+ <executable >env/bin/pip3 </executable >
162
+ <workingDirectory >${project.build.directory} </workingDirectory >
162
163
<arguments >
163
- <argument >-m </argument >
164
- <argument >venv </argument >
165
- <argument >env </argument >
164
+ <argument >install </argument >
165
+ <argument >--upgrade </argument >
166
+ <argument >pip </argument >
166
167
</arguments >
167
168
</configuration >
168
169
<phase >test</phase >
@@ -201,6 +202,36 @@ Portions Copyright (c) 2017-2018, Chris Fraire <
[email protected] >.
201
202
<goal >exec</goal >
202
203
</goals >
203
204
</execution >
205
+ <execution >
206
+ <id >Install Python lint</id >
207
+ <configuration >
208
+ <executable >${project.build.directory} /env/bin/pip3</executable >
209
+ <arguments >
210
+ <argument >install</argument >
211
+ <argument >pylint</argument >
212
+ </arguments >
213
+ </configuration >
214
+ <phase >verify</phase >
215
+ <goals >
216
+ <goal >exec</goal >
217
+ </goals >
218
+ </execution >
219
+ <execution >
220
+ <id >Python lint</id >
221
+ <configuration >
222
+ <executable >env/bin/pylint</executable >
223
+ <workingDirectory >${project.build.directory} </workingDirectory >
224
+ <arguments >
225
+ <argument >-E</argument >
226
+ <argument >${project.build.sourceDirectory} /opengrok_tools</argument >
227
+ <argument >${project.build.directory} /setup.py</argument >
228
+ </arguments >
229
+ </configuration >
230
+ <phase >verify</phase >
231
+ <goals >
232
+ <goal >exec</goal >
233
+ </goals >
234
+ </execution >
204
235
<execution >
205
236
<id >python-test</id >
206
237
<configuration >
0 commit comments