Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
heroku-buildpack-python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Evili del Rio i Silvan
heroku-buildpack-python
Commits
21dd1782
Commit
21dd1782
authored
9 years ago
by
Kenneth Reitz
Browse files
Options
Downloads
Patches
Plain Diff
whitelisting
parent
beb8c705
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/compile
+14
-7
14 additions, 7 deletions
bin/compile
with
14 additions
and
7 deletions
bin/compile
+
14
−
7
View file @
21dd1782
...
@@ -207,26 +207,33 @@ bpwatch start post_compile
...
@@ -207,26 +207,33 @@ bpwatch start post_compile
source
$BIN_DIR
/steps/hooks/post_compile
source
$BIN_DIR
/steps/hooks/post_compile
bpwatch stop post_compile
bpwatch stop post_compile
# Store new artifacts in cache.
bpwatch start dump_cache
rm
-rf
$CACHE_DIR
/
$CACHED_DIR
cp
-R
$CACHED_DIR
$CACHE_DIR
/
bpwatch stop dump_cache
# ### Fin.
# ### Fin.
if
[[
!
"
$DOCKER_BUILD
"
]]
;
then
if
[[
!
"
$DOCKER_BUILD
"
]]
;
then
bpwatch start appdir_commit
bpwatch start appdir_commit
deep-rm
$ORIG_BUILD_DIR
deep-rm
$ORIG_BUILD_DIR
deep-
mv
$BUILD_DIR
$ORIG_BUILD_DIR
deep-
cp
$BUILD_DIR
$ORIG_BUILD_DIR
bpwatch stop appdir_commit
bpwatch stop appdir_commit
bpwatch start anvil_appdir_commit
bpwatch start anvil_appdir_commit
if
[
"
$SLUG_ID
"
]
;
then
if
[
"
$SLUG_ID
"
]
;
then
deep-
mv
$TMP_APP_DIR
$APP_DIR
deep-
cp
$TMP_APP_DIR
$APP_DIR
fi
fi
bpwatch stop anvil_appdir_commit
bpwatch stop anvil_appdir_commit
bpwatch stop compile
bpwatch stop compile
fi
fi
# Remove all non-whitelisted objects from cache.
cd
$CACHED_DIR
find
.
-type
f
-not
\(
-name
'python'
-or
-name
'python-version'
-or
-name
'python-stack'
-or
-name
'vendor'
-or
-name
'venv'
\)
-delete
cd
$BUILD_DIR
# Store new artifacts in cache.
bpwatch start dump_cache
rm
-rf
$CACHE_DIR
/
$CACHED_DIR
cp
-R
$CACHED_DIR
$CACHE_DIR
/
bpwatch stop dump_cache
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment