Skip to content

Commit 3cc2e69

Browse files
authored
Merge pull request #74 from StackStorm-Exchange/configurable-checkouts
Configurable checkouts
2 parents 41f9de5 + 4d6dfcd commit 3cc2e69

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.circle/dependencies

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ CURRENT_DIR="$(dirname "$0")"
77
export CI_DIR=/home/circleci/ci
88
export PYTHONPATH=/tmp/st2/st2common:${PYTHONPATH}
99

10+
ST2_BRANCH=${ST2_BRANCH:-master}
11+
LINT_CONFIGS_BRANCH=${LINT_CONFIGS_BRANCH:-master}
12+
1013
git config --global user.name "StackStorm Exchange"
1114
git config --global user.email "info@stackstorm.com"
1215

@@ -15,10 +18,10 @@ python --version
1518
pip --version
1619

1720
# Clone st2 repo so other scripts can reference StackStorm Python code
18-
git clone --depth 1 --single-branch --branch master https://github.com/StackStorm/st2.git /tmp/st2
21+
git clone --depth 1 --single-branch --branch "${ST2_BRANCH}" https://github.com/StackStorm/st2.git /tmp/st2
1922

2023
# Clone lint-configs
21-
git clone --depth 1 --single-branch --branch master https://github.com/StackStorm/lint-configs.git ~/ci/lint-configs
24+
git clone --depth 1 --single-branch --branch "${LINT_CONFIGS_BRANCH}" https://github.com/StackStorm/lint-configs.git ~/ci/lint-configs
2225

2326
# Create a directory for debian packages so we can cache it in Circle CI
2427
sudo rm -rf /var/cache/apt/archives && sudo ln -s ~/.apt-cache /var/cache/apt/archives && mkdir -p ~/.apt-cache/partial

0 commit comments

Comments
 (0)