test: Don't fail on tag builds

This seems to be causing our failures with:

$ git fetch --unshallow
fatal: Couldn't find remote ref refs/heads/0.0.x

where x is some tag.

Hopefully this doesn't break the other use case we added this patch for!
This commit is contained in:
James Shubin
2018-01-11 18:03:56 -05:00
parent 70c59eab4a
commit e8b03545bb

View File

@@ -8,7 +8,7 @@ sudo: true
dist: trusty dist: trusty
before_install: before_install:
- sudo apt update - sudo apt update
- git config remote.origin.fetch +refs/heads/${TRAVIS_BRANCH}:refs/remotes/origin/${TRAVIS_BRANCH} - git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
- git fetch --unshallow - git fetch --unshallow
install: 'make deps' install: 'make deps'
script: 'make test' script: 'make test'