Skip to content

Commit 2ebc072

Browse files
authored
Only build master pushes
Since we still commit PRs as branches into this repo Travis will build every PR twice plus the merge commit. This means three equal builds for nothing. We should save their resources and (for now) just build the master branch. That way a PR will only be built once plus the actual merge on master to update the build status badge.
1 parent 09e66f6 commit 2ebc072

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,14 @@ language: java
33
jdk:
44
- oraclejdk8
55

6+
branches:
7+
only:
8+
- master
9+
610
before_cache:
711
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
812
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
913
cache:
1014
directories:
1115
- $HOME/.gradle/caches/
12-
- $HOME/.gradle/wrapper/
16+
- $HOME/.gradle/wrapper/

0 commit comments

Comments
 (0)