Skip to content

Commit

Permalink
BUILD - Travis Slack Integration
Browse files Browse the repository at this point in the history
- added JHOVE Slack channel Travis notifications; and
- expanded binary extension list in `.gitattributes`.
  • Loading branch information
carlwilson committed Apr 26, 2017
1 parent ad2c190 commit a276044
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
7 changes: 7 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
# Prevent interpretation as text and end-of-line conversions.
*.warc binary
*.pdf binary
*.gif binary
*.jpg binary
*.jp2 binary
*.jpx binary
*.tif binary
*.wav binary
20 changes: 11 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
language: java

jdk:
- oraclejdk7
- oraclejdk8
Expand All @@ -11,7 +10,7 @@ branches:

notifications:
slack:
secure: 2tPcqxi5BQkomyLYTDk90JrI5iqm9TL5Hc9SklPVemtEUQdDqeEejNjBGIOxQeXxe6Vza/cVEVp8emmb0GQ25k36DeI82kvxWu/dtaXC2B73dr0zFw3IV6VpG9nUcmgNiHrTYDlK5C3QYlkYKDSrAlrBRLA16qiSIe2JpPSClI4=
secure: qAKVtBCrucCt8GB1SVjjCckwWqC6zAvXN7UdT+aFLH2u7vILT4jzLibTRAaTqqcBBnxFYE87qii4uaIbIltMRZYBQUyiz/mTabkQq5RHJKzzZq54qcKjrI7BSCJHoJErBYrNO4yECUgR6wkhF2/e0+OxEtuSxFovTGXN9ycMT0c=

env:
global:
Expand All @@ -20,17 +19,18 @@ env:
addons:
coverity_scan:
project:
name: "openpreserve/jhove"
description: "File validation and characterisation"
name: openpreserve/jhove
description: File validation and characterisation
notification_email: [email protected]
build_command_prepend: "mvn clean"
build_command: "mvn -DskipTests=true compile"
build_command_prepend: mvn clean
build_command: mvn -DskipTests=true compile
branch_pattern: integration

before_install:
- sudo apt-get install -y realpath
- sudo apt-get install jq
- 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)
- 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)

script:
- mvn clean install -DjacocoAgg
Expand All @@ -39,7 +39,9 @@ script:

after_success:
- bash <(curl -s https://codecov.io/bash)
- java -cp ~/codacy-coverage-reporter-assembly-latest.jar com.codacy.CodacyCoverageReporter -l Java -r jhove-apps/target/site/jacoco-aggregate/jacoco.xml
- java -cp ~/codacy-coverage-reporter-assembly-latest.jar com.codacy.CodacyCoverageReporter
-l Java -r jhove-apps/target/site/jacoco-aggregate/jacoco.xml

after_failure:
- cat /tmp/bbt-logs/log.txt | grep --group-separator"===== Unexpected output =====" -n -B 1 -A 2 Expected
- cat /tmp/bbt-logs/log.txt | grep --group-separator"===== Unexpected output ====="
-n -B 1 -A 2 Expected

0 comments on commit a276044

Please sign in to comment.