Archived
0

Fixed general development branch lacking Travis CI configuration file.

This commit is contained in:
Logan Fick
2019-01-21 20:42:41 -05:00
parent 8fb9945e73
commit 71ae1b3779

8
.travis.yml Normal file
View File

@@ -0,0 +1,8 @@
---
before_script:
- "build=true;for file in $(find . -name \"*.java\");do module_scan=$(grep -E \"public +(final +)?class +\\w+ +(extends +.* +)?implements +(\\w+, *)?Module\" \"$file\");if [ -z \"$module_scan\" ];then continue;fi;diff=$(git diff master \"$file\");if [ ! -z \"$diff\" ];then scanned=$(echo \"$x\" | grep \"@Version\");if [ -z \"$scanned\" ];then echo -e \"Found modified module with unchanged version number $file\";build=false;fi;fi;done;if ! $build;then echo -e \"Found one or more unchanged version numbers. Failing build.\";exit 1;fi"
- "if find . -name \"*.java\" | xargs grep \"System.out.print\"; then echo \"Found one or more direct prints to console. Failing build.\"; exit 1; fi;"
jdk:
- openjdk8
- oraclejdk8
language: java