File tree Expand file tree Collapse file tree 2 files changed +7
-12
lines changed Expand file tree Collapse file tree 2 files changed +7
-12
lines changed Original file line number Diff line number Diff line change @@ -44,22 +44,20 @@ if [ ! "$DISABLE_COLLECTSTATIC" ] && [ -f "$MANAGE_FILE" ] && [ "$DJANGO_INSTALL
44
44
# Display a warning if collectstatic failed.
45
45
[ " $COLLECTSTATIC_STATUS " -ne 0 ] && {
46
46
47
- mcount " failure.collectstatic"
48
-
49
47
if grep -q ' SyntaxError' " $COLLECTSTATIC_LOG " ; then
50
48
mcount " failure.collectstatic.syntax-error"
51
- fi
52
49
53
- if grep -q ' ImproperlyConfigured' " $COLLECTSTATIC_LOG " ; then
50
+ elif grep -q ' ImproperlyConfigured' " $COLLECTSTATIC_LOG " ; then
54
51
mcount " failure.collectstatic.improper-configuration"
55
- fi
56
52
57
- if grep -q ' The CSS file' " $COLLECTSTATIC_LOG " ; then
53
+ elif grep -q ' The CSS file' " $COLLECTSTATIC_LOG " ; then
58
54
mcount " failure.collectstatic.fancy-references"
59
- fi
60
55
61
- if grep -q ' OSError' " $COLLECTSTATIC_LOG " ; then
56
+ elif grep -q ' OSError' " $COLLECTSTATIC_LOG " ; then
62
57
mcount " failure.collectstatic.missing-file"
58
+
59
+ else
60
+ mcount " failure.collectstatic.other"
63
61
fi
64
62
65
63
echo
Original file line number Diff line number Diff line change @@ -20,9 +20,6 @@ if [ ! "$SKIP_PIP_INSTALL" ]; then
20
20
mcount " tool.pip"
21
21
22
22
# Count expected build failures.
23
- if grep -q ' wsgiref' requirements.txt; then
24
- mcount " failure.wsgiref"
25
- fi
26
23
if grep -q ' ==0.0.0' requirements.txt; then
27
24
mcount " failure.none-version"
28
25
fi
@@ -35,10 +32,10 @@ if [ ! "$SKIP_PIP_INSTALL" ]; then
35
32
show-warnings
36
33
37
34
if [[ ! $PIP_STATUS -eq 0 ]]; then
35
+ mcount " failure.pip-install"
38
36
exit 1
39
37
fi
40
38
41
-
42
39
# Smart Requirements handling
43
40
cp requirements.txt .heroku/python/requirements-declared.txt
44
41
/app/.heroku/python/bin/pip freeze --disable-pip-version-check > .heroku/python/requirements-installed.txt
You can’t perform that action at this time.
0 commit comments