Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
heroku-buildpack-python
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Python-Dev
heroku-buildpack-python
Commits
dd0aee7b
Commit
dd0aee7b
authored
Apr 20, 2018
by
Kenneth Reitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update metrics
parent
23827b59
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
12 deletions
+7
-12
collectstatic
bin/steps/collectstatic
+6
-8
pip-install
bin/steps/pip-install
+1
-4
No files found.
bin/steps/collectstatic
View file @
dd0aee7b
...
...
@@ -44,22 +44,20 @@ if [ ! "$DISABLE_COLLECTSTATIC" ] && [ -f "$MANAGE_FILE" ] && [ "$DJANGO_INSTALL
# Display a warning if collectstatic failed.
[
"
$COLLECTSTATIC_STATUS
"
-ne
0
]
&&
{
mcount
"failure.collectstatic"
if
grep
-q
'SyntaxError'
"
$COLLECTSTATIC_LOG
"
;
then
mcount
"failure.collectstatic.syntax-error"
fi
if
grep
-q
'ImproperlyConfigured'
"
$COLLECTSTATIC_LOG
"
;
then
el
if
grep
-q
'ImproperlyConfigured'
"
$COLLECTSTATIC_LOG
"
;
then
mcount
"failure.collectstatic.improper-configuration"
fi
if
grep
-q
'The CSS file'
"
$COLLECTSTATIC_LOG
"
;
then
el
if
grep
-q
'The CSS file'
"
$COLLECTSTATIC_LOG
"
;
then
mcount
"failure.collectstatic.fancy-references"
fi
if
grep
-q
'OSError'
"
$COLLECTSTATIC_LOG
"
;
then
el
if
grep
-q
'OSError'
"
$COLLECTSTATIC_LOG
"
;
then
mcount
"failure.collectstatic.missing-file"
else
mcount
"failure.collectstatic.other"
fi
echo
...
...
bin/steps/pip-install
View file @
dd0aee7b
...
...
@@ -20,9 +20,6 @@ if [ ! "$SKIP_PIP_INSTALL" ]; then
mcount
"tool.pip"
# Count expected build failures.
if
grep
-q
'wsgiref'
requirements.txt
;
then
mcount
"failure.wsgiref"
fi
if
grep
-q
'==0.0.0'
requirements.txt
;
then
mcount
"failure.none-version"
fi
...
...
@@ -35,10 +32,10 @@ if [ ! "$SKIP_PIP_INSTALL" ]; then
show-warnings
if
[[
!
$PIP_STATUS
-eq
0
]]
;
then
mcount
"failure.pip-install"
exit
1
fi
# Smart Requirements handling
cp
requirements.txt .heroku/python/requirements-declared.txt
/app/.heroku/python/bin/pip freeze
--disable-pip-version-check
>
.heroku/python/requirements-installed.txt
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment