1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-27 00:34:46 +01:00

Fetch more of the repository history for non clang-format builds. (#8788)

By default, Travis fetches a shallow copy of the repository with up to 50 commits, leading `git describe` to not find any tag to offset against.

This commit explicitly adds a refspec to fetch tags from, and then instructs Travis to fetch the relevant commits.
This commit is contained in:
Aaron van Geffen
2019-03-05 13:59:10 +01:00
committed by GitHub
parent 584ea87ac5
commit 736734c065

View File

@@ -10,6 +10,11 @@ before_install:
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then bash scripts/linux/install.sh; export OPENRCT_MAKE_OPTS="-k 10 all openrct2-cli" ; fi
- if [[ $TRAVIS_OS_NAME == "osx" ]]; then sudo gem install xcpretty-travis-formatter; fi
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 config remote.origin.fetch +refs/tags/*:refs/tags/*; fi
- if [[ $TRAVIS_JOB_NAME != "clang-format" ]]; then git fetch --tags; fi
sudo: required
dist: trusty
env: