Skip to content

Commit 29b18cc

Browse files
committed
Install pack requirements-tests.txt file in dependencies script (if
available).
1 parent df4c516 commit 29b18cc

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

.circle/dependencies

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,14 @@ echo "Installing StackStorm runners and registering metrics drivers"
4242

4343
if [ ! -z "${ROOT_DIR}" ]; then
4444
PACK_REQUIREMENTS_FILE="${ROOT_DIR}/requirements.txt"
45+
PACK_TESTS_REQUIREMENTS_FILE="${ROOT_DIR}/requirements-tests.txt"
4546

4647
echo "Copying Makefile to ${ROOT_DIR}"
4748
cp ~/ci/.circle/Makefile ${ROOT_DIR}
4849
make -C requirements-ci .install-runners
4950
else
5051
PACK_REQUIREMENTS_FILE="$(pwd)/requirements.txt"
52+
PACK_TESTS_REQUIREMENTS_FILE="$(pwd)/requirements-tests.txt"
5153

5254
echo "Copying Makefile to $(pwd)"
5355
cp ~/ci/.circle/Makefile .
@@ -60,5 +62,11 @@ if [ -f "${PACK_REQUIREMENTS_FILE}" ]; then
6062
~/virtualenv/bin/pip install -r "${PACK_REQUIREMENTS_FILE}"
6163
fi
6264

65+
# Install pack tests requirements
66+
if [ -f "${PACK_TESTS_REQUIREMENTS_FILE}" ]; then
67+
echo "Installing pack tests requirements from ${PACK_TESTS_REQUIREMENTS_FILE}"
68+
~/virtualenv/bin/pip install -r "${PACK_TESTS_REQUIREMENTS_FILE}"
69+
fi
70+
6371
echo "Installed dependencies:"
6472
pip list

tools/add_new_circle_config.sh

100644100755
File mode changed.

0 commit comments

Comments
 (0)