diff --git a/.travis.yml b/.travis.yml index 0d7b95c..577f881 100644 --- a/.travis.yml +++ b/.travis.yml @@ -30,6 +30,11 @@ jobs: script: - vendor/bin/phpcs -p +stages: + - Test + - name: Code Quality + if: type = pull_request + allow_failures: - php: nightly @@ -37,6 +42,8 @@ cache: directories: - $HOME/.composer/cache/files -branches: - only: - - master +if: | + branch = master OR \ + branch =~ /^(?:[0-9]|[1-9][0-9]*)\.(?:[0-9]|[1-9][0-9]*)$/ OR \ + tag IS present OR \ + type = pull_request