Skip to content

Commit

Permalink
fix: travis config
Browse files Browse the repository at this point in the history
  • Loading branch information
jcharlet committed Dec 31, 2019
1 parent ab37985 commit 926a218
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ cache:
- $HOME/.m2

install:
- if [ $(mvn -v | grep Java | sed -E 's/.*version: (.*\..*)\..*, vendor:.*/\1/g') = "1.8" ];
then echo "on Java 8, skip droid-ui module";
mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V -pl '!droid-ui';
- if [ $(mvn -v | grep Java | sed -E 's/.*version:\ (.*\..*)\..*, vendor:.*/\1/g') = "1.8" ];
then echo "on Java 8, skip droid-swing-ui module";
mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V -pl '!droid-swing-ui';
else mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V;
fi;


script:
- if [ $(mvn -v | grep Java | sed -E 's/.*version: (.*\..*)\..*, vendor:.*/\1/g') = "1.8" ];
then echo "on Java 8, skip droid-ui module";
mvn test -B -pl '!droid-ui';
- if [ $(mvn -v | grep Java | sed -E 's/.*version:\ (.*\..*)\..*, vendor:.*/\1/g') = "1.8" ];
then echo "on Java 8, skip droid-swing-ui module";
mvn test -B -pl '!droid-swing-ui';
else mvn test -B;
fi;

0 comments on commit 926a218

Please sign in to comment.