.travis.yml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. language: java
  2. sudo: required
  3. dist: trusty
  4. jdk:
  5. - oraclejdk8
  6. cache:
  7. directories:
  8. - $HOME/.m2
  9. env:
  10. global:
  11. - secure: "IfYURwZaDWuBDvyn47n0k1Zod/IQw1FF+CS5nnV08Q+NfC3vGGJMwV8m59XnbfwnWGxwvCaAbk4qP6s6+ijgZNKkvgfFMo3rfTok5zt43bIqgaFOANYV+OC/1c59gYD6ZUxhW5iNgMgU3qdsRtJuwSmfkVv/jKyLGfAbS4kN8BA=" # COVERITY_SCAN_TOKEN
  12. - secure: "lV9OwUbHMrMpLUH1CY+Z4puLDdFXytudyPlG1eGRsesdpuG6KM3uQVz6uAtf6lrU8DRbMM/T7ML+PmvQ4UoPPYLdLxESLLBat2qUPOIVBOhTSlCc7I0DmGy04CSvkeMy8dPaQC0ukgNiR7zwoNzfcpGRN/U9S8tziDruuHoZSrg=" # BINTRAY_API_KEY
  13. - secure: "oWFgRTVP6lyTa7qVxlvkpm20MtVc3BtmsNXQJS6bfg2A0o/iCQMNx7OD59BaafCLGRKvCcJVESiC8FlSylVMS7CDSyYu0gg70NUiIuHp4NBM5inFWYCy/PdQsCTzr5uvNG+rMFQpMFRaCV0FrfM3tLondcVkhsHL68l93Xoexx4=" # CODACY_PROJECT_TOKEN
  14. addons:
  15. coverity_scan:
  16. project:
  17. name: "cryptomator/cryptomator"
  18. notification_email: sebastian.stenzel@cryptomator.org
  19. build_command: "mvn -fmain/pom.xml clean test -DskipTests"
  20. branch_pattern: release.*
  21. install:
  22. # "clean" needed until https://bugs.openjdk.java.net/browse/JDK-8067747 is resolved.
  23. - mvn -fmain/pom.xml clean package -DskipTests dependency:go-offline -Pcoverage
  24. - mvn -fmain/pom.xml clean package -DskipTests dependency:go-offline -Prelease
  25. script:
  26. - mvn --update-snapshots -fmain/pom.xml clean test jacoco:report verify -Pcoverage
  27. before_deploy:
  28. - mvn -fmain/pom.xml -Prelease clean package -DskipTests
  29. deploy:
  30. - provider: releases
  31. prerelease: false
  32. api_key:
  33. secure: "ZjE1j93v3qbPIe2YbmhS319aCbMdLQw0HuymmluTurxXsZtn9D4t2+eTr99vBVxGRuB5lzzGezPR5zjk5W7iHF7xhwrawXrFzr2rPJWzWFt0aM+Ry2njU1ROTGGXGTbv4anWeBlgMxLEInTAy/9ytOGNJlec83yc0THpOY2wxnk="
  34. file:
  35. - "main/uber-jar/target/Cryptomator-$TRAVIS_TAG.jar"
  36. - "main/ant-kit/target/antkit.tar.gz"
  37. skip_cleanup: true
  38. on:
  39. repo: cryptomator/cryptomator
  40. tags: true
  41. - provider: script
  42. script: "curl -X POST -u cryptobot:${BINTRAY_API_KEY} -H 'Content-Type: application/json' -d '{\"name\": \"${TRAVIS_TAG}\", \"vcs_tag\": \"${TRAVIS_TAG}\"}' https://api.bintray.com/packages/cryptomator/cryptomator/cryptomator-win/versions"
  43. on:
  44. repo: cryptomator/cryptomator
  45. tags: true
  46. - provider: script
  47. script: "curl -X POST -u cryptobot:${BINTRAY_API_KEY} -H 'Content-Type: application/json' -d '{\"name\": \"${TRAVIS_TAG}\", \"vcs_tag\": \"${TRAVIS_TAG}\"}' https://api.bintray.com/packages/cryptomator/cryptomator/cryptomator-osx/versions"
  48. on:
  49. repo: cryptomator/cryptomator
  50. tags: true