diff --git a/.travis.yml b/.travis.yml index 4f8f37c16e..85340645c0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,21 +1,44 @@ language: java - jdk: -- oraclejdk8 + - oraclejdk8 + - openjdk8 + - oraclejdk9 + +cache: + apt: true + directories: + - $HOME/.m2 sudo: required -#services: -#- docker 000ctGQcXVGUjeURqQeHclLLpst2Td0uR6SgAGLEOxjeQ9ghzQWC/4x9BPW7xf7SkxhESWB2MMTvxma8xaV7hmNSsUK7tHyMLZPGdhDnPuUx2E6eNG4IZzUvcmHI4U= +addons: + apt: + packages: + - jq + +matrix: + allow_failures: + - jdk: oraclejdk9 + +script: + #run tests and integration tests + - mvn integration-test + #run jar sanity tests + - git clone https://github.com/alon-e/iri-regression + - cd iri-regression + - mkdir iri + - cp -rf ../target iri/target + - bash run_all_stable_tests.sh + - cd .. + +after_success: + #codacy-coverage send report + - test $TRAVIS_PULL_REQUEST = "false" && test $TRAVIS_JDK_VERSION = "oraclejdk8" && wget -O codacy-coverage-reporter-assembly-latest.jar $(curl https://api.github.com/repos/codacy/codacy-coverage-reporter/releases/latest | jq -r .assets[0].browser_download_url) + - test $TRAVIS_PULL_REQUEST = "false" && test $TRAVIS_JDK_VERSION = "oraclejdk8" && java -jar codacy-coverage-reporter-assembly-latest.jar report -l Java -r target/site/jacoco/jacoco.xml -#after_success: -#- openssl aes-256-cbc -K $encrypted_d7986c8d48fc_key -iv $encrypted_d7986c8d48fc_iv -# -in .snapcraft/travis_snapcraft.cfg -out .snapcraft/snapcraft.cfg -d -# deploy: - provider: releases api_key: - #secure: l80FJQ+9Kk+ZYZxXcfagFGgnrp8BlnSZNCDv9KqbWYWQ4YL83qULlD1xgewUcEZhxbddR4nIo/gB1HxrdUxyjzHQKd1ysQ54BH9ZM51MqAtmzslz1gg6WNIDElugsY484W/ynAOQ286tq/5Y4bsAtmHaNzRLlf0sUfW1evXVBNFTz+0eLinqd/r0cC6bEFVk0TWXtk2+EcfTsowkyA36QNZhA+l0ti7GpJj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FzM/JX0OHMtIyAvUfyyPVbQkIHNcGBgQMZasx07K3fjcn2lqv4FbHVi3HbdM=" file_glob: true file: target/*.jar* @@ -27,17 +50,6 @@ deploy: repo: iotaledger/iri branch: - master - # - dev - #all_branches: true -#- provider: script -#script: docker run -v $(pwd):$(pwd) -t ubuntu:xenial sh -c "apt update -qq && apt -#install snapcraft -y && cd $(pwd) && snapcraft && snapcraft push *.snap --release -#edge" -#skip_cleanup: true -#on: -#tags: true -#repo: iotaledger/iri -#branch: master env: global: - secure: oJutGSe5KK3ymwSvohFZ89UL7XaNlXH6fdO2nBEYbk5KyYuQ1Wm+h6+N/05EbwxwDK9dEiF73ZJh76sZ3IWKjRC8VWjUAz+8p38hGvQwByrVsJkrbs5SA4wA4XnyvEqyMV3yqbcgRNbMlIvj7ubUbxMizz7MA7plnumrnx9ejPG1WP4rNgzUA3XcBWHdITyOSg9rSMBJzMZ9CN1Dv+1SxZV+GlkyWN8n1Cshkq2TnNl1oRZqGKs7O0ma1dN0hUKtBa80AsCTjH8ojZFJU92gmkvAWDw5BTSZ8mhX9sZcbBYT8SnQxNDrf51HJ+K7hvdpFbsy5Z0g24cNJkA8lfUnzXFznZ/PH4hm8MeVWjRiWdE4VZr47iYzJcs0brOHSeab6fBoeTPS5899Q3V+yAw6CahfvOBthuF3Ymy+fZXoDO5242PSWXXsGwFqK7r/gT0iwJZxMBI/UUWsP/s7J/CWux8ftwbOdSbs4XdQZsuqxzKEKDDwU0FTytantsMS/vcgI41K5azyY4tbkixzydaBPvhimkflaWcuZb//mXcntitgyenaSwfkLX5pD5l1srVzSliyabnH7AprLOm1B9DBfk2leI2XgGJg/Q/GrVtcjcl1FU0aXBFhLrp3BkK7chlG2v/Eacr8Pb6NOQHORyq64n2prF6zvExX0aadOddefoA=