Skip to content

Commit 195e689

Browse files
committed
Install the local repo version before running tests so coverage reports
can overlap
1 parent a335488 commit 195e689

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

heroku_ci.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
#!/bin/bash
22
# This script runs the tests on Heroku CI
33

4+
# Install the checked out version of CumulusCI so coverage reports are always against the same code
5+
pip install -r requirements_dev.txt
6+
47
# Run the CumulusCI Unit Tests
58
git clone -b "$HEROKU_TEST_RUN_BRANCH" --single-branch https://github.com/SalesforceFoundation/CumulusCI
69
cd CumulusCI
710
git reset --hard $HEROKU_TEST_RUN_COMMIT_VERSION
811
nosetests --with-tap --tap-stream --with-coverage --cover-package=cumulusci
912

10-
pip install -r requirements_dev.txt
11-
1213
# Clone the CumulusCI-Test repo to run test builds against it with cci
1314
echo "------------------------------------------"
1415
echo "Running test builds against CumulusCI-Test"
@@ -61,6 +62,7 @@ else
6162
fi
6263

6364
# Combine the CumulusCI-Test test coverage with the nosetest coverage
65+
echo "Combining .coverage files"
6466
cd ..
6567
coverage combine .coverage CumulusCI-Test/.coverage
6668

0 commit comments

Comments
 (0)