Skip to content
This repository was archived by the owner on Nov 21, 2019. It is now read-only.

Commit 0e12fde

Browse files
Allow Travis to build tags and version branches (#4)
* Allow Travis to build tags and version branches * Use conditions * Only run Code Quality stage on pull requests
1 parent 7c081e3 commit 0e12fde

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.travis.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,20 @@ jobs:
3030
script:
3131
- vendor/bin/phpcs -p
3232

33+
stages:
34+
- Test
35+
- name: Code Quality
36+
if: type = pull_request
37+
3338
allow_failures:
3439
- php: nightly
3540

3641
cache:
3742
directories:
3843
- $HOME/.composer/cache/files
3944

40-
branches:
41-
only:
42-
- master
45+
if: |
46+
branch = master OR \
47+
branch =~ /^(?:[0-9]|[1-9][0-9]*)\.(?:[0-9]|[1-9][0-9]*)$/ OR \
48+
tag IS present OR \
49+
type = pull_request

0 commit comments

Comments
 (0)