Skip to content

Commit bc6c837

Browse files
author
Vladimir Kotal
committed
add pep8 checks
fixes #1980
1 parent 68c32f3 commit bc6c837

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
@@ -434,6 +434,27 @@ Portions Copyright (c) 2017, Chris Fraire <[email protected]>.
434434
</configuration>
435435
</plugin>
436436

437+
<plugin>
438+
<groupId>org.codehaus.mojo</groupId>
439+
<artifactId>exec-maven-plugin</artifactId>
440+
<version>1.6.0</version>
441+
<executions>
442+
<execution>
443+
<phase>verify</phase>
444+
<goals>
445+
<goal>exec</goal>
446+
</goals>
447+
</execution>
448+
</executions>
449+
<configuration>
450+
<executable>pep8</executable>
451+
<arguments>
452+
<argument>-v</argument>
453+
<argument>--exclude=filelock.py,test_command.py</argument>
454+
<argument>${project.basedir}/../tools/sync</argument>
455+
</arguments>
456+
</configuration>
457+
</plugin>
437458

438459
</plugins>
439460
</build>

0 commit comments

Comments
 (0)