[ci] Execute sonar and coveralls only for pushes

This avoids spinning up VMs for these jobs as they would not
execute any script anyways. Sonar and coveralls are only
updated for pushes.
This commit is contained in:
Andreas Dangel
2019-11-11 19:40:00 +01:00
parent 69008857d5
commit 79c61c982a

View File

@ -27,10 +27,12 @@ matrix:
os: linux
dist: bionic
env: BUILD=sonar
if: "type = push && repo = pmd/pmd && fork = false"
- name: "linux - run coveralls"
os: linux
dist: bionic
env: BUILD=coveralls
if: "type = push && repo = pmd/pmd && fork = false"
- name: "macosx - mvn verify"
os: osx
env: BUILD=deploy