Skip to content

Commit 983aaac

Browse files
authored
Merge pull request #2031 from vladak/mvn_pep8
add pep8 checks
2 parents da5179d + bc6c837 commit 983aaac

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ cache:
88
- $HOME/.m2
99
before_install:
1010
- sudo apt-get update -qq
11-
- sudo apt-get install -qq exuberant-ctags cvs git mercurial cssc bzr subversion monotone rcs
11+
- sudo apt-get install -qq exuberant-ctags cvs git mercurial cssc bzr subversion monotone rcs pep8
1212
- sudo ./scripts/install-bitkeeper.sh
13+
install: true
1314

1415
before_script:
1516
- bk --version
@@ -26,7 +27,7 @@ env:
2627
# via the "travis encrypt" command using the project repo's public key
2728
- secure: "O_cda5pWDBAP-O3_0nG5RQ"
2829

29-
script: "mvn -DskipTests=true -Dmaven.javadoc.skip=false -B -V compile && cd opengrok-indexer && mvn javadoc:javadoc && cd ../opengrok-web && mvn javadoc:javadoc && cd .. && mvn test -B"
30+
script: "mvn -DskipTests=true -Dmaven.javadoc.skip=false -B -V compile && cd opengrok-indexer && mvn javadoc:javadoc && cd ../opengrok-web && mvn javadoc:javadoc && cd .. && mvn verify -B"
3031

3132
addons:
3233
coverity_scan:

opengrok-indexer/pom.xml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,27 @@ Portions Copyright (c) 2017, Chris Fraire <[email protected]>.
441441
</configuration>
442442
</plugin>
443443

444+
<plugin>
445+
<groupId>org.codehaus.mojo</groupId>
446+
<artifactId>exec-maven-plugin</artifactId>
447+
<version>1.6.0</version>
448+
<executions>
449+
<execution>
450+
<phase>verify</phase>
451+
<goals>
452+
<goal>exec</goal>
453+
</goals>
454+
</execution>
455+
</executions>
456+
<configuration>
457+
<executable>pep8</executable>
458+
<arguments>
459+
<argument>-v</argument>
460+
<argument>--exclude=filelock.py,test_command.py</argument>
461+
<argument>${project.basedir}/../tools/sync</argument>
462+
</arguments>
463+
</configuration>
464+
</plugin>
444465

445466
</plugins>
446467
</build>

0 commit comments

Comments
 (0)