Skip to content

Commit

Permalink
Add a refspec for tags to git config to force fetch tags (#292)
Browse files Browse the repository at this point in the history
  • Loading branch information
muizzk authored and AaronVanGeffen committed Mar 5, 2019
1 parent 1510a1a commit 9341c77
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ before_install:

install:
- if [[ $TRAVIS_JOB_NAME != "clang-format" ]]; then git config remote.origin.fetch +refs/heads/*:refs/remotes/origin/*; fi
- if [[ $TRAVIS_JOB_NAME != "clang-format" ]]; then git fetch --unshallow; fi
- if [[ $TRAVIS_JOB_NAME != "clang-format" ]]; then git config remote.origin.fetch +refs/tags/*:refs/tags/*; fi
- if [[ $TRAVIS_JOB_NAME != "clang-format" ]]; then git fetch --tags; fi

sudo: required
dist: trusty
Expand Down Expand Up @@ -55,7 +56,8 @@ matrix:
install:
- brew uninstall --ignore-dependencies boost
- if [[ $TRAVIS_JOB_NAME != "clang-format" ]]; then git config remote.origin.fetch +refs/heads/*:refs/remotes/origin/*; fi
- if [[ $TRAVIS_JOB_NAME != "clang-format" ]]; then git fetch --unshallow; fi
- if [[ $TRAVIS_JOB_NAME != "clang-format" ]]; then git config remote.origin.fetch +refs/tags/*:refs/tags/*; fi
- if [[ $TRAVIS_JOB_NAME != "clang-format" ]]; then git fetch --tags; fi
script:
- curl -L https://github.com/OpenLoco/Dependencies/releases/download/v1.1.0/openloco.dependencies.macos.1.1.0.zip -o dependencies.zip
- unzip -q dependencies.zip -d vcpkg/
Expand All @@ -75,7 +77,8 @@ matrix:
install:
- brew uninstall --ignore-dependencies boost
- if [[ $TRAVIS_JOB_NAME != "clang-format" ]]; then git config remote.origin.fetch +refs/heads/*:refs/remotes/origin/*; fi
- if [[ $TRAVIS_JOB_NAME != "clang-format" ]]; then git fetch --unshallow; fi
- if [[ $TRAVIS_JOB_NAME != "clang-format" ]]; then git config remote.origin.fetch +refs/tags/*:refs/tags/*; fi
- if [[ $TRAVIS_JOB_NAME != "clang-format" ]]; then git fetch --tags; fi
script:
- curl -L https://github.com/OpenLoco/Dependencies/releases/download/v1.1.0/openloco.dependencies.macos.1.1.0.zip -o dependencies.zip
- unzip -q dependencies.zip -d vcpkg/
Expand Down

0 comments on commit 9341c77

Please sign in to comment.