diff --git a/.travis.yml b/.travis.yml index aa0b3bb2bc0..d3241a381d1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,5 @@ os: linux -dist: xenial +dist: bionic language: php stages: @@ -11,7 +11,7 @@ php: - 7.1 - 7.2 - 7.3 - - 7.4snapshot + #- 7.4 - master env: @@ -50,7 +50,11 @@ jobs: - | openssl aes-256-cbc -K $encrypted_bd816b4f73f9_key -iv $encrypted_bd816b4f73f9_iv -in build/key.gpg.enc -out build/key.gpg -d && \ echo $GPG_PASSPHRASE | gpg --batch --passphrase-fd 0 --import build/key.gpg && \ - rm build/key.gpg + rm build/key.gpg && \ + echo default-cache-ttl 3600 >> ~/.gnupg/gpg-agent.conf && \ + echo allow-preset-passphrase >> ~/.gnupg/gpg-agent.conf && \ + sudo apt-get -q install --no-install-recommends -y gnupg-agent && \ + echo $GPG_PASSPHRASE | /usr/lib/gnupg/gpg-preset-passphrase --preset 084DFEB449D61EB57A0BD96FEDCC231388521DDE script: - | composer install --working-dir=compiler && \ @@ -63,7 +67,9 @@ jobs: git config user.email "ondrej@mirtes.cz" && \ git config user.name "Ondrej Mirtes" && \ git config --global user.signingkey 9511B99BD25BF787 && \ - git add phpstan phpstan.phar && \ + gpg --batch -ab phpstan.phar && \ + gpg --verify phpstan.phar.asc && \ + git add phpstan phpstan.phar phpstan.phar.asc && \ git commit -S -m "Updated PHPStan to commit ${TRAVIS_COMMIT}" -m "${GIT_LOG}" && \ git push --quiet origin master - stage: test