Skip to content

Commit 279ba54

Browse files
committed
Travis: only test master branch and pull requests
1 parent bb05f61 commit 279ba54

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

.travis.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ dart:
44
- dev
55
- stable
66
- 1.21.1
7-
cache:
8-
directories:
9-
- $HOME/.pub-cache
7+
108
dart_task:
119
- test: --platform vm
1210
xvfb: false
@@ -15,3 +13,11 @@ dart_task:
1513
install_dartium: true
1614
- dartfmt
1715
- dartanalyzer
16+
17+
# Only building master means that we don't run two builds for each pull request.
18+
branches:
19+
only: [master]
20+
21+
cache:
22+
directories:
23+
- $HOME/.pub-cache

0 commit comments

Comments
 (0)