language: java

notifications:
  email:
    recepients:
      - omid-ci@yahoo-inc.com
  on_success: always
  on_failure: always

jdk:
  - oraclejdk8

branches:
  only:
    - open-source

cache:
  directories:
    - "~/.m2"

before_script:
  # This is required to avoid failures of HBase minicluster related to Hadoop 1.x releases
  - umask 022
  - git config --global user.email "omid-ci@yahoo-inc.com"
  - git config --global user.name "Omid CI"
  - git checkout open-source

script:
  - mvn cobertura:cobertura
  - mkdir failedTests && find -name testng-failed.xml -exec cp -vf "{}" failedTests/ \; && [ ! -f failedTests/testng-failed.xml ]

after_success:
  - mvn coveralls:report
  - mvn -B release:prepare release:perform -Prelease_profile,hbase-0 --settings bintray-settings.xml

after_failure:
  - cat common/target/surefire-reports/*.txt
  - cat statemachine/target/surefire-reports/*.txt
  - cat metrics/target/surefire-reports/*.txt
  - cat codahale-metrics/target/surefire-reports/*.txt
  - cat hbase-client/target/surefire-reports/*.txt
  - cat transaction-client/target/surefire-reports/*.txt
  - cat tso-server/target/surefire-reports/*.txt
  - cat commit-table/target/surefire-reports/*.txt
  - cat hbase-commit-table/target/surefire-reports/*.txt
  - cat hbase-coprocessor/target/surefire-reports/*.txt
  - cat benchmarks/target/surefire-reports/*.txt

language: java

notifications:
  email:
    recepients:
      - omid-ci@yahoo-inc.com
  on_success: always
  on_failure: always

jdk:
  - oraclejdk8

branches:
  only:
    - open-source

cache:
  directories:
    - "~/.m2"

before_script:
  # This is required to avoid failures of HBase minicluster related to Hadoop 1.x releases
  - umask 022
  - git config --global user.email "omid-ci@yahoo-inc.com"
  - git config --global user.name "Omid CI"
  - git checkout open-source

script:
  - mvn cobertura:cobertura
  - mkdir failedTests && find -name testng-failed.xml -exec cp -vf "{}" failedTests/ \; && [ ! -f failedTests/testng-failed.xml ]

after_success:
  - mvn coveralls:report
  - mvn -B release:prepare release:perform -Prelease_profile,hbase-0 --settings bintray-settings.xml

after_failure:
  - VERSION=`xml_grep -t '/project/version' pom.xml` && git checkout -b "failed-build-$VERSION" && git config core.autocrlf false && git add -f */surefire-reports/* && git commit --verbose -m"Surefile output" && git push origin $VERSION:$VERSION
Store surefire reports in github instead of dumping on the screen
Store surefire reports in github instead of dumping on the screen

Change-Id: Idf1c4d4fb55be8a55ce67321e182eea6777c4c2a
