Skip to content

Commit 17ee921

Browse files
author
manasdk
committed
Learned the hard way that test.pre is not run on every box
1 parent c8fddc5 commit 17ee921

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

circle.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,15 @@ dependencies:
6262
post:
6363
# - .circle/docker-compose.sh build ${DISTRO}
6464
- echo "skipping build" && hostname
65+
# This ensures that st2-packages is not accidentally picked up while running tests.
66+
- mv ${ST2_REPO_ROOT_DIR}/st2-packages ${ST2_REPO_ROOT_DIR}/.st2-packages
67+
- cd ${ST2_REPO_ROOT_DIR} && hostname && make compile requirements
6568
test:
6669
pre:
6770
# ~/.cache/pip and ~/wheelhouse need to be owned by local user to run tests.
6871
# tests cannot be run as root since github user keys are not configured for root.
6972
- sudo chown -R ubuntu:ubuntu ~/.cache/pip
7073
- sudo chown -R ubuntu:ubuntu ~/wheelhouse
71-
# This ensures that st2-packages is not accidentally picked up while running tests.
72-
- mv ${ST2_REPO_ROOT_DIR}/st2-packages ${ST2_REPO_ROOT_DIR}/.st2-packages
73-
- cd ${ST2_REPO_ROOT_DIR} && hostname && make compile requirements
7474
override:
7575
- case $CIRCLE_NODE_INDEX in 0) cd ${ST2_REPO_ROOT_DIR} && make .flake8 .pylint ;; 1) cd ${ST2_REPO_ROOT_DIR} && make .unit-tests-coverage-html && make clean ;; 2) cd ${ST2_REPO_ROOT_DIR} && make .itests-coverage-html && make clean ;; esac:
7676
parallel: true

0 commit comments

Comments
 (0)