|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!-- |
| 3 | +
|
| 4 | +CDDL HEADER START |
| 5 | +
|
| 6 | +The contents of this file are subject to the terms of the |
| 7 | +Common Development and Distribution License (the "License"). |
| 8 | +You may not use this file except in compliance with the License. |
| 9 | +
|
| 10 | +See LICENSE.txt included in this distribution for the specific |
| 11 | +language governing permissions and limitations under the License. |
| 12 | +
|
| 13 | +When distributing Covered Code, include this CDDL HEADER in each |
| 14 | +file and include the License file at LICENSE.txt. |
| 15 | +If applicable, add the following below this CDDL HEADER, with the |
| 16 | +fields enclosed by brackets "[]" replaced with your own identifying |
| 17 | +information: Portions Copyright [yyyy] [name of copyright owner] |
| 18 | +
|
| 19 | +CDDL HEADER END |
| 20 | +
|
| 21 | +Copyright (c) 2010, 2018, Oracle and/or its affiliates. All rights reserved. |
| 22 | +Portions Copyright (c) 2017-2018, Chris Fraire <[email protected]>. |
| 23 | +
|
| 24 | +--> |
| 25 | +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 26 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
| 27 | + <modelVersion>4.0.0</modelVersion> |
| 28 | + |
| 29 | + <parent> |
| 30 | + <groupId>org.opengrok</groupId> |
| 31 | + <artifactId>opengrok-top</artifactId> |
| 32 | + <version>1.1-rc58</version> |
| 33 | + </parent> |
| 34 | + |
| 35 | + <artifactId>opengrok-tools</artifactId> |
| 36 | + <version>1.1-rc58</version> |
| 37 | + <packaging>pom</packaging> |
| 38 | + |
| 39 | + <name>OpenGrok tools</name> |
| 40 | + |
| 41 | + <build> |
| 42 | + <sourceDirectory>src/main/python</sourceDirectory> |
| 43 | + <testSourceDirectory>src/test/python</testSourceDirectory> |
| 44 | + |
| 45 | + <plugins> |
| 46 | + <plugin> |
| 47 | + <groupId>org.codehaus.mojo</groupId> |
| 48 | + <artifactId>exec-maven-plugin</artifactId> |
| 49 | + <version>1.6.0</version> |
| 50 | + <executions> |
| 51 | + <execution> |
| 52 | + <configuration> |
| 53 | + <executable>flake8</executable> |
| 54 | + <arguments> |
| 55 | + <argument>-v</argument> |
| 56 | + <argument>--exclude=filelock.py,test_command.py,test_commands.py</argument> |
| 57 | + <argument>${project.build.sourceDirectory}</argument> |
| 58 | + <argument>setup.py</argument> |
| 59 | + </arguments> |
| 60 | + </configuration> |
| 61 | + <phase>verify</phase> |
| 62 | + <goals> |
| 63 | + <goal>exec</goal> |
| 64 | + </goals> |
| 65 | + </execution> |
| 66 | + <execution> |
| 67 | + <id>generate python env</id> |
| 68 | + <configuration> |
| 69 | + <executable>python3</executable> |
| 70 | + <workingDirectory>${project.build.directory}/../</workingDirectory> |
| 71 | + <arguments> |
| 72 | + <argument>-m</argument> |
| 73 | + <argument>venv</argument> |
| 74 | + <argument>env</argument> |
| 75 | + </arguments> |
| 76 | + </configuration> |
| 77 | + <phase>test</phase> |
| 78 | + <goals> |
| 79 | + <goal>exec</goal> |
| 80 | + </goals> |
| 81 | + </execution> |
| 82 | + <execution> |
| 83 | + <id>generate-package</id> |
| 84 | + <goals> |
| 85 | + <goal>exec</goal> |
| 86 | + </goals> |
| 87 | + <configuration> |
| 88 | + <executable>env/bin/python</executable> |
| 89 | + <workingDirectory>${project.build.directory}/../</workingDirectory> |
| 90 | + <arguments> |
| 91 | + <argument>setup.py</argument> |
| 92 | + <argument>sdist</argument> |
| 93 | + </arguments> |
| 94 | + </configuration> |
| 95 | + <phase>package</phase> |
| 96 | + </execution> |
| 97 | + <execution> |
| 98 | + <id>pre-python-test</id> |
| 99 | + <configuration> |
| 100 | + <executable>env/bin/python</executable> |
| 101 | + <workingDirectory>${project.build.directory}/../</workingDirectory> |
| 102 | + <arguments> |
| 103 | + <argument>setup.py</argument> |
| 104 | + <argument>install</argument> |
| 105 | + </arguments> |
| 106 | + </configuration> |
| 107 | + <phase>test</phase> |
| 108 | + <goals> |
| 109 | + <goal>exec</goal> |
| 110 | + </goals> |
| 111 | + </execution> |
| 112 | + <execution> |
| 113 | + <id>python-test</id> |
| 114 | + <configuration> |
| 115 | + <executable>env/bin/python</executable> |
| 116 | + <workingDirectory>${project.build.directory}/../</workingDirectory> |
| 117 | + <arguments> |
| 118 | + <argument>setup.py</argument> |
| 119 | + <argument>test</argument> |
| 120 | + </arguments> |
| 121 | + </configuration> |
| 122 | + <phase>test</phase> |
| 123 | + <goals> |
| 124 | + <goal>exec</goal> |
| 125 | + </goals> |
| 126 | + </execution> |
| 127 | + </executions> |
| 128 | + |
| 129 | + </plugin> |
| 130 | + |
| 131 | + <plugin> |
| 132 | + <groupId>org.apache.maven.plugins</groupId> |
| 133 | + <artifactId>maven-checkstyle-plugin</artifactId> |
| 134 | + </plugin> |
| 135 | + |
| 136 | + </plugins> |
| 137 | + </build> |
| 138 | + |
| 139 | +</project> |
0 commit comments