Skip to content

Commit d9614c4

Browse files
committed
- Only run ci_master, release_beta, and ci_beta flows on master commits
- Emit TAP output for the cci flow runs
1 parent 69fcd20 commit d9614c4

File tree

1 file changed

+48
-4
lines changed

1 file changed

+48
-4
lines changed

heroku_ci.sh

+48-4
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,53 @@ nosetests --with-tap --tap-stream --with-coverage --cover-package=cumulusci
99
coveralls
1010

1111
# Clone the CumulusCI-Test repo to run test builds against it with cci
12+
echo "------------------------------------------"
13+
echo "Running test builds against CumulusCI-Test"
14+
echo "------------------------------------------"
15+
echo ""
16+
echo "Cloning https://github.com/SalesforceFoundation/CumulusCI-Test"
1217
git clone https://github.com/SalesforceFoundation/CumulusCI-Test
1318
cd CumulusCI-Test
14-
cci flow run ci_feature --org scratch --delete-org
15-
cci flow run ci_master --org packaging
16-
cci flow run release_beta --org packaging
17-
cci flow run ci_beta --org scratch --delete-org
19+
if [ $HEROKU_TEST_RUN_BRANCH -eq "master" ]; then
20+
echo "1...4"
21+
cci flow run ci_feature --org scratch --delete-org | tee cci.log
22+
exit_status=$?
23+
if [ $exit_status -eq 0 ]; then
24+
echo "ok 1 - Successfully ran ci_feature"
25+
else
26+
echo "not ok 1 - Failed ci_feature: `tail -1 cci.log`"
27+
fi
28+
29+
cci flow run ci_master --org packaging | tee -a cci.log
30+
exit_status=$?
31+
if [ $exit_status -eq 0 ]; then
32+
echo "ok 2 - Successfully ran ci_master"
33+
else
34+
echo "not ok 2 - Failed ci_master: `tail -1 cci.log`"
35+
fi
36+
cci flow run release_beta --org packaging | tee -a cci.log
37+
exit_status=$?
38+
if [ $exit_status -eq 0 ]; then
39+
echo "ok 3 - Successfully ran release_beta"
40+
else
41+
echo "not ok 3 - Failed release_beta: `tail -1 cci.log`"
42+
fi
43+
cci flow run ci_beta --org scratch --delete-org | tee -a cci.log
44+
exit_status=$?
45+
if [ $exit_status -eq 0 ]; then
46+
echo "ok 4 - Successfully ran ci_beta"
47+
else
48+
echo "not ok 4 - Failed ci_beta: `tail -1 cci.log`"
49+
fi
50+
51+
else
52+
echo "1...1"
53+
cci flow run ci_feature --org scratch --delete-org
54+
exit_status=$?
55+
if [ $exit_status -eq 0 ]; then
56+
echo "ok 1 - Successfully ran ci_feature"
57+
else
58+
echo "not ok 1 - Failed ci_feature: `tail -1 cci.log`"
59+
fi
60+
fi
61+

0 commit comments

Comments
 (0)