Skip to content

Commit 49e9147

Browse files
authored
track usage of older feature steps (#802)
* track usage of older feature steps * remove typo whitespace * make buildvars consistently cased
1 parent 3c0146c commit 49e9147

File tree

5 files changed

+8
-2
lines changed

5 files changed

+8
-2
lines changed

bin/steps/gdal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ if (pip-grep -s requirements.txt GDAL gdal pygdal &> /dev/null) then
2626
mkdir -p .heroku/vendor
2727
# Download and extract cryptography into target vendor directory.
2828
curl "$VENDORED_GDAL" -s | tar zxv -C .heroku/vendor &> /dev/null
29+
mcount "steps.vendor.gdal"
2930
fi
3031

3132
GDAL=$(pwd)/vendor
3233
export GDAL
3334
fi
34-

bin/steps/geo-libs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ source "$BIN_DIR/utils"
2222

2323
# If GDAL exists within requirements, use vendored gdal.
2424
if [[ "$BUILD_WITH_GEO_LIBRARIES" ]]; then
25+
mcount "buildvar.BUILD_WITH_GEO_LIBRARIES"
2526

2627
if [ ! -f ".heroku/vendor/bin/proj" ]; then
2728
echo "-----> Bootstrapping gdal, geos, proj."
@@ -31,9 +32,11 @@ if [[ "$BUILD_WITH_GEO_LIBRARIES" ]]; then
3132
curl "$VENDORED_GEOS" -s | tar zxv -C .heroku/vendor &> /dev/null
3233
curl "$VENDORED_PROJ" -s | tar zxv -C .heroku/vendor &> /dev/null
3334

35+
mcount "steps.vendor.geo_libs"
3436
# Copy libjasper from build image to slug.
3537
if [[ "$STACK" == "heroku-16" ]]; then
3638
cp /usr/lib/x86_64-linux-gnu/libjasper.so* ".heroku/vendor/lib/."
39+
mcount "steps.vendor.libjasper"
3740
fi
3841

3942
fi

bin/steps/mercurial

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
if [[ -f "requirements.txt" ]]; then
55
if (grep -Fiq "hg+" requirements.txt) then
66
/app/.heroku/python/bin/pip install mercurial | cleanup | indent
7+
mcount "steps.mercurial"
78
fi
89
fi
9-

bin/steps/nltk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ if sp-grep -s nltk; then
2727
python -m nltk.downloader -d "$BUILD_DIR/.heroku/python/nltk_data" "${nltk_packages[@]}" | indent
2828
set_env NLTK_DATA "/app/.heroku/python/nltk_data"
2929

30+
mcount "buildvar.NLTK_PACKAGES_DEFINITION"
31+
mcount "steps.nltk"
3032
else
3133
puts-warn "'nltk.txt' not found, not downloading any corpora"
3234
puts-warn "Learn more: https://devcenter.heroku.com/articles/python-nltk"

bin/steps/pylibmc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ if (pip-grep -s requirements.txt pylibmc &> /dev/null) then
2929
mkdir -p .heroku/vendor
3030
# Download and extract libmemcached into target vendor directory.
3131
curl "$VENDORED_MEMCACHED" -s | tar zxv -C .heroku/vendor &> /dev/null
32+
mcount "steps.vendor.pylibmc"
3233
fi
3334

3435
LIBMEMCACHED=$(pwd)/vendor

0 commit comments

Comments
 (0)