Skip to content

Commit 4d09e47

Browse files
committed
Travis: Fix frozen tools check never failing
Having recently moved the frozen tools check to a standalone stage at the end, we need to fetch the base branch so make comparison work. Travis environments are not shared across different stages. Without the fetch, the check always passes as a PR is compared with itself.
1 parent d28ce00 commit 4d09e47

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,9 @@ matrix:
317317
stage: "Frozen tools check"
318318
name: "Frozen tools check"
319319
env: NAME=frozen_tools_check
320+
before_script:
321+
# Fetch the base branch to compare against
322+
- git fetch origin "${TRAVIS_BRANCH}" --depth=1
320323
script:
321324
# Reject any changes to tools that would require a re-release of the
322325
# tools for the online compiler.

0 commit comments

Comments
 (0)