Skip to content

Commit e394cb8

Browse files
authored
Fix CI by pinning bats to the latest release (1.2.0) (pyenv#1602)
* Pin bats to the latest release (1.2.0) This fixes the following error when running `make test` with bats installed from its master branch: /src/bats/libexec/bats-core/bats-exec-file: line 192: bats-exec-test: command not found The Makefile currently runs bats from its master branch. This can lead to errors when bats is broken between releases, as is currently the case with bats at the following commit: bats-core/bats-core@b615ed8 Instead, use the latest release of bats, which is 1.2.0 (2020-04-25). * Pin bats to latest release on Travis CI
1 parent 5e8719a commit e394cb8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ env:
3232
before_install:
3333
- date +%Y-%m-%dT%H:%M:%S
3434

35-
install: git clone --depth 1 https://github.com/bats-core/bats-core.git bats
35+
install: git clone --depth 1 --branch v1.2.0 https://github.com/bats-core/bats-core.git bats
3636

3737
# Default for auto-generated jobs.
3838
script: make test-build

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ test-build:
2222
$(PYTHON_BUILD_TEST_PREFIX)/bin/pip -V
2323

2424
bats:
25-
git clone --depth 1 https://github.com/bats-core/bats-core.git bats
25+
git clone --depth 1 --branch v1.2.0 https://github.com/bats-core/bats-core.git bats

0 commit comments

Comments
 (0)