-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
56 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
language: java | ||
|
||
jdk: | ||
- oraclejdk8 | ||
|
||
# see https://github.com/travis-ci/travis-ci/issues/8408 | ||
before_install: | ||
- unset _JAVA_OPTIONS | ||
- git clone https://github.com/google/google-java-format.git | ||
- cd google-java-format | ||
- patch ./core/src/main/java/com/google/googlejavaformat/java/JavaFormatterOptions.java < ../patches/line.patch | ||
|
||
# use travis-ci docker based infrastructure | ||
sudo: false | ||
|
||
cache: | ||
directories: | ||
- $HOME/.m2 | ||
|
||
install: mvn install -DskipTests=true -V | ||
|
||
script: cp ./core/target/google-java-format-*-all-deps.jar ../bin/google-java-format.jar | ||
|
||
after_success: | ||
- cd .. | ||
- mkdir release | ||
- cp palint.py release/ | ||
- cp -r bin release/ | ||
- cd release | ||
- wget https://sourceforge.net/projects/checkstyle/files/latest/download | ||
- mv download bin/checkstyle.jar | ||
- zip -r release.zip . | ||
|
||
deploy: | ||
provider: releases | ||
api-key: $GITHUB_TOKEN | ||
file: release.zip | ||
skip_cleanup: true | ||
on: | ||
tags: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
# cse-pa-lint | ||
# cse-pa-lint [![Build Status](https://travis-ci.org/mistzzt/cse-pa-lint.svg)][travis] | ||
Detecting possible style in-correction in programming assignments | ||
|
||
[travis]: <https://travis-ci.org/mistzzt/cse-pa-lint> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- JavaFormatterOptions.java 2017-10-29 21:23:59.057733900 -0700 | ||
+++ Modified.java 2017-10-29 21:33:17.479177900 -0700 | ||
@@ -29,7 +29,7 @@ | ||
@Immutable | ||
public class JavaFormatterOptions { | ||
|
||
- static final int DEFAULT_MAX_LINE_LENGTH = 100; | ||
+ static final int DEFAULT_MAX_LINE_LENGTH = 80; | ||
|
||
public enum Style { | ||
|