Skip to content

Commit

Permalink
Adds signing-keys
Browse files Browse the repository at this point in the history
  • Loading branch information
heiglandreas committed Jan 18, 2017
1 parent b80f3ee commit a3387a6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ addons:
before_install:
- travis_retry composer self-update
- if [[ $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
- echo $DECRYPT_KEY | gpg --passphrase-fd 0 JUnitDiffSigning.asc.gpg
- gpg --batch --yes --import JUnitDiffSigning.asc


install:
- if [[ $TEST_COVERAGE == 'true' && $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then travis_retry composer require --dev satooshi/php-coveralls ; fi
Expand All @@ -27,7 +30,7 @@ install:

script:
- composer test
- if [[ $BUILD_PHAR == 'true' && $TRAVIS_TAG != '' ]]; then composer buildphar ; fi
- if [[ $BUILD_PHAR == 'true' && $TRAVIS_TAG != '' ]]; then composer buildphar && echo $SIGN_KEY | gpg --passphrase-fd 0 -u AE11B9CEBADB342A --armor --detach-sig build/junitdiff.phar ; fi

after_script:
- if [[ $TEST_COVERAGE == 'true' && $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then travis_retry vendor/bin/coveralls -v ; fi
Expand All @@ -36,7 +39,9 @@ after_script:
deploy:
provider: releases
api_key: $GITHUB_API_KEY
file: build/junitdiff.phar
file:
- build/junitdiff.phar
- build/junitdiff.phar.asc
skip_cleanup: true
on:
tags: true
Expand Down
Binary file added JUnitDiffSigning.asc.gpg
Binary file not shown.

0 comments on commit a3387a6

Please sign in to comment.