main
1#!/usr/bin/env bash
2
3set -e
4
5cd "$(dirname "$0")/.."
6
7echo "==> Detecting breaking changes"
8
9TEST_PATHS=(
10 tests/api_resources
11 tests/test_client.py
12 tests/test_response.py
13 tests/test_legacy_response.py
14)
15
16for PATHSPEC in "${TEST_PATHS[@]}"; do
17 # Try to check out previous versions of the test files
18 # with the current SDK.
19 git checkout "$1" -- "${PATHSPEC}" 2>/dev/null || true
20done
21
22# Instead of running the tests, use the linter to check if an
23# older test is no longer compatible with the latest SDK.
24./scripts/lint