diff --git a/.travis.yml b/.travis.yml index bb570a3ec..70ade98be 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,23 +1,26 @@ language: java notifications: email: false - -gradle assemble -gradle check - +if: tag IS blank +before_install: chmod +x gradlew +install: "./gradlew setupCIWorkspace" +script: "./gradlew clean build" +jdk: +- oraclejdk8 before_cache: - - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock - - rm -fr $HOME/.gradle/caches/*/plugin-resolution/ +- find $HOME/.gradle/ -name '*.lock' -print -exec rm -f {} \; cache: directories: - - $HOME/.gradle/caches/ - - $HOME/.gradle/wrapper/ - -jdk: - - oraclejdk8 - + - "$HOME/.gradle/caches/" + - "$HOME/.gradle/wrapper/" sudo: false -addons: - apt: - packages: - - oracle-java8-installer \ No newline at end of file +before_deploy: +- export RELEASE_FILE_LIST=$(ls ./build/libs/* | tr '\n' ', ') +- echo "deploying $RELEASE_FILE_LIST to GitHub releases" +deploy: + provider: releases + api_key: + secure: MBF4aODfOzuwRWAbppp0q+r8DpZoZk59j2N3knUOBoNQwLUFwz0BGm2f+IOV36J2fO+XQRsyTMvRJt/mDkx1LpApttWfnYl2ZgPqPJ02+oiHOEYe1zyOX83ls4W1wsD7IjL126h+Kv++Hs6KasQEe/c0Ihwjo3dhjDnPKWU0+IM5McjSZ7X65DU7ZvkwklBxHpwH8QMRJSqjgunZzza1qyUHNjgQCDbHcheJnnZ0pQ7L/8T8fevNPdVesIrGR4r0wXhaD/Q8jYUZX3shuSKbIJXzqqGRQTmjfeQrirFcaB9YasNcp2NrsBlhVA9AhhM3le+gRRCYP4pwfA2lX/k/h7RaXbA+demdZnbKZZzctDREsg026mMe4fKhe9vM24/sPxr72dcXvSJqLTPw9X5zaXQubu3WKH5WXOPDxKoFsOCSi98zBOS26iEPrnOI+aAy+uO7nYqNytiCS5kVZwZtLu8CsGauGxKstoejVOUoZumzqT72yaGnSr4mQbyLDbUcmQ1XwQUP+20E5nzA9/Hcs5qwIKy30PMptL9p6SQvS1DFPtAiEoVn5GbQ8k6uC1+SVmPpuNmcymgMaaYmBESzYlg1bdx+nY3VMSSL5MJipk789pXPdrPww3Tzhnk/UtTdLhT7ZKiPaFcJUFacnUPmki0m3ZqYfnmRjWDyjEp1lcM= + file: ".travis.yml" + on: + repo: Andromander/Gaia-Dimension