Skip to content

Commit

Permalink
Update Gson's test protos in gen_tests script.
Browse files Browse the repository at this point in the history
Also:
 * Affix an extension so IDEA will syntax highlight in Bash.
 * Fail the Travis CI build when the gen_tests.sh script creates uncommited changes.
  • Loading branch information
JakeWharton committed Jul 17, 2015
1 parent ec52a8d commit f00f1dc
Show file tree
Hide file tree
Showing 22 changed files with 633 additions and 208 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ jdk:
- oraclejdk7
- oraclejdk8

before_script:
- ./gen_tests.sh
- if [ ! -z "$(git status --porcelain)" ]; then echo "Test files changed. Did you run gen_tests.sh?"; exit 1; fi

after_success:
- .buildscript/deploy_snapshot.sh

Expand Down
2 changes: 2 additions & 0 deletions gen_tests → gen_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ java -jar ../wire-compiler/target/wire-compiler-*-SNAPSHOT-jar-with-dependencies
--java_out=../wire-runtime/src/test/java \
--enum_options=squareup.protos.custom_options.enum_value_option,squareup.protos.custom_options.complex_enum_value_option,squareup.protos.foreign.foreign_enum_value_option \
${PROTOS}

cp src/test/java/com/squareup/wire/protos/alltypes/* ../wire-gson-support/src/test/java/com/squareup/wire/protos/alltypes/
Loading

0 comments on commit f00f1dc

Please sign in to comment.