mirror of
https://github.com/danog/psalm.git
synced 2024-11-26 20:34:47 +01:00
Rearrange build/sign/deploy
- Phar signing moved to build-phar.sh (conditional on gpg keys availability) - Tagged phar releases moved to travis-deploy-phar.sh - `travis-deploy-phar.sh` is now triggered via `script` deploy provider
This commit is contained in:
parent
b494629d55
commit
96521a6469
16
.travis.yml
16
.travis.yml
@ -66,20 +66,18 @@ jobs:
|
||||
- stage: Phar build
|
||||
php: 7.3
|
||||
env: DEPS="high"
|
||||
script:
|
||||
- bin/build-phar.sh
|
||||
- if [[ "$TRAVIS_PULL_REQUEST" = 'false' && "$GITHUB_TOKEN" != '']]; then bin/travis-deploy-phar.sh; fi
|
||||
before_deploy:
|
||||
- echo $GPG_ENCRYPTION | gpg --passphrase-fd 0 keys.asc.gpg
|
||||
- gpg --batch --yes --import keys.asc
|
||||
- echo $SIGNING_KEY | gpg --passphrase-fd 0 -u 8A03EA3B385DBAA1 --armor --detach-sig build/psalm.phar
|
||||
- cd phar && git tag ${TRAVIS_TAG} && git push origin ${TRAVIS_TAG} && cd ..
|
||||
script: bin/build-phar.sh
|
||||
deploy:
|
||||
- provider: releases
|
||||
skip_cleanup: true
|
||||
on:
|
||||
tags: true
|
||||
provider: releases
|
||||
condition: ' "$GITHUB_TOKEN" != "" '
|
||||
api_key: $GITHUB_TOKEN
|
||||
file:
|
||||
- build/psalm.phar
|
||||
- build/psalm.phar.asc
|
||||
- provider: script
|
||||
skip_cleanup: true
|
||||
condition: ' "$TRAVIS_PULL_REQUEST" = "false" && "$GITHUB_TOKEN" != "" '
|
||||
script: bin/travis-deploy-phar.sh
|
||||
|
@ -3,4 +3,8 @@ composer bin box install
|
||||
|
||||
vendor/bin/box compile
|
||||
|
||||
# build/psalm.phar --config=bin/phar.psalm.xml
|
||||
if [[ "$GPG_ENCRYPTION" != '' ]] ; then
|
||||
echo $GPG_ENCRYPTION | gpg --passphrase-fd 0 keys.asc.gpg
|
||||
gpg --batch --yes --import keys.asc
|
||||
echo $SIGNING_KEY | gpg --passphrase-fd 0 -u 8A03EA3B385DBAA1 --armor --detach-sig build/psalm.phar
|
||||
fi
|
||||
|
@ -6,3 +6,8 @@ git config user.name "Travis CI"
|
||||
git add psalm.phar
|
||||
git commit -m "Updated Psalm phar to commit ${TRAVIS_COMMIT}"
|
||||
git push --quiet origin master
|
||||
|
||||
if [[ "$TRAVIS_TAG" != '' ]] ; then
|
||||
git tag "$TRAVIS_TAG"
|
||||
git push origin "$TRAVIS_TAG"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user