瀏覽代碼

still trying to speed up build
building uber-jar only when deploying

Sebastian Stenzel 9 年之前
父節點
當前提交
e4955ea6c8
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      .travis.yml

+ 3 - 1
.travis.yml

@@ -9,7 +9,7 @@ env:
 
 before_install: "curl -L --cookie 'oraclelicense=accept-securebackup-cookie;'  http://download.oracle.com/otn-pub/java/jce/8/jce_policy-8.zip -o /tmp/policy.zip && sudo unzip -j -o /tmp/policy.zip *.jar -d `jdk_switcher home oraclejdk8`/jre/lib/security && rm /tmp/policy.zip"
 
-script: mvn -fmain/pom.xml -Puber-jar clean test jacoco:report package
+script: mvn -fmain/pom.xml clean test jacoco:report
 
 after_success: mvn -fmain/pom.xml coveralls:report
 
@@ -21,6 +21,8 @@ notifications:
     on_failure: always
     on_start: false
 
+before_deploy: mvn -fmain/pom.xml -Puber-jar clean package -DskipTests
+
 deploy:
   provider: releases
   prerelease: true