.travis.yml 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. language: java
  2. sudo: false
  3. jdk:
  4. - oraclejdk9
  5. cache:
  6. directories:
  7. - $HOME/.m2
  8. env:
  9. global:
  10. - secure: "IfYURwZaDWuBDvyn47n0k1Zod/IQw1FF+CS5nnV08Q+NfC3vGGJMwV8m59XnbfwnWGxwvCaAbk4qP6s6+ijgZNKkvgfFMo3rfTok5zt43bIqgaFOANYV+OC/1c59gYD6ZUxhW5iNgMgU3qdsRtJuwSmfkVv/jKyLGfAbS4kN8BA=" # COVERITY_SCAN_TOKEN
  11. - secure: "lV9OwUbHMrMpLUH1CY+Z4puLDdFXytudyPlG1eGRsesdpuG6KM3uQVz6uAtf6lrU8DRbMM/T7ML+PmvQ4UoPPYLdLxESLLBat2qUPOIVBOhTSlCc7I0DmGy04CSvkeMy8dPaQC0ukgNiR7zwoNzfcpGRN/U9S8tziDruuHoZSrg=" # BINTRAY_API_KEY
  12. - secure: "oWFgRTVP6lyTa7qVxlvkpm20MtVc3BtmsNXQJS6bfg2A0o/iCQMNx7OD59BaafCLGRKvCcJVESiC8FlSylVMS7CDSyYu0gg70NUiIuHp4NBM5inFWYCy/PdQsCTzr5uvNG+rMFQpMFRaCV0FrfM3tLondcVkhsHL68l93Xoexx4=" # CODACY_PROJECT_TOKEN
  13. addons:
  14. apt:
  15. packages:
  16. - haveged
  17. coverity_scan:
  18. project:
  19. name: "cryptomator/cryptomator"
  20. notification_email: sebastian.stenzel@cryptomator.org
  21. build_command: "mvn -fmain/pom.xml clean test -DskipTests"
  22. branch_pattern: release.*
  23. install:
  24. # "clean" needed until https://bugs.openjdk.java.net/browse/JDK-8067747 is resolved.
  25. - mvn -fmain/pom.xml clean package -DskipTests dependency:go-offline -Pcoverage
  26. - mvn -fmain/pom.xml clean package -DskipTests dependency:go-offline -Prelease
  27. script:
  28. - mvn --update-snapshots -fmain/pom.xml clean test jacoco:report verify -Pcoverage
  29. after_success:
  30. - jdk_switcher use oraclejdk8
  31. - curl -o ~/codacy-coverage-reporter-assembly-latest.jar https://oss.sonatype.org/service/local/repositories/releases/content/com/codacy/codacy-coverage-reporter/2.0.1/codacy-coverage-reporter-2.0.1-assembly.jar
  32. - $JAVA_HOME/bin/java -cp ~/codacy-coverage-reporter-assembly-latest.jar com.codacy.CodacyCoverageReporter -l Java -r main/jacoco-report/target/site/jacoco-aggregate/jacoco.xml
  33. before_deploy:
  34. - mvn -fmain/pom.xml -Prelease clean package -DskipTests
  35. deploy:
  36. - provider: releases
  37. prerelease: false
  38. api_key:
  39. secure: "ZjE1j93v3qbPIe2YbmhS319aCbMdLQw0HuymmluTurxXsZtn9D4t2+eTr99vBVxGRuB5lzzGezPR5zjk5W7iHF7xhwrawXrFzr2rPJWzWFt0aM+Ry2njU1ROTGGXGTbv4anWeBlgMxLEInTAy/9ytOGNJlec83yc0THpOY2wxnk="
  40. file:
  41. - "main/uber-jar/target/Cryptomator-$TRAVIS_TAG.jar"
  42. - "main/ant-kit/target/antkit.tar.gz"
  43. skip_cleanup: true
  44. on:
  45. repo: cryptomator/cryptomator
  46. tags: true
  47. - provider: script
  48. 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"
  49. on:
  50. repo: cryptomator/cryptomator
  51. tags: true
  52. - provider: script
  53. 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"
  54. on:
  55. repo: cryptomator/cryptomator
  56. tags: true