File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ CURRENT_DIR="$(dirname "$0")"
77export CI_DIR=/home/circleci/ci
88export PYTHONPATH=/tmp/st2/st2common:${PYTHONPATH}
99
10+ ST2_BRANCH=${ST2_BRANCH:- master}
11+ LINT_CONFIGS_BRANCH=${LINT_CONFIGS_BRANCH:- master}
12+
1013git config --global user.name " StackStorm Exchange"
1114git config --global user.email " info@stackstorm.com"
1215
@@ -15,10 +18,10 @@ python --version
1518pip --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
2427sudo rm -rf /var/cache/apt/archives && sudo ln -s ~ /.apt-cache /var/cache/apt/archives && mkdir -p ~ /.apt-cache/partial
You can’t perform that action at this time.
0 commit comments