Skip to content

Commit

Permalink
Check Java formatting in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jongiddy committed Apr 26, 2018
1 parent c331362 commit 57bc542
Show file tree
Hide file tree
Showing 3 changed files with 312 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
sudo: required
language: java
jdk:
# Build and test Barefoot library using JDK 7, 8, 9
# Build and test Barefoot library using JDK 7, 8
- openjdk7
- oraclejdk8
- oraclejdk9
matrix:
include:
- env: NAME="Matcher Server"
Expand All @@ -30,6 +29,14 @@ matrix:
# Ensure PostgreSQL server is ready - for other tests, PostreSQL has plenty of time to start
- until docker exec barefoot-database sudo --user=postgres -- psql --command='select 1;'; do sleep 1; done
script: docker exec barefoot-database /bin/bash /mnt/map/tools/test/run.sh
- env: NAME="Java Formatting"
jdk: oraclejdk8
before_install: true
install: mvn formatter:format
before_script: true
script:
- git diff --exit-code
after_failure: true To fix this failure automatically, run "mvn formatter:format" on your code using Java 8+
services:
- docker
before_install:
Expand Down
Loading

0 comments on commit 57bc542

Please sign in to comment.