Skip to content

Commit

Permalink
Update buildspec.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
PeckTonium authored Aug 22, 2017
1 parent 0fb8173 commit f706de0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion buildspec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ virtualenv --python=python2.7 venv
venv/bin/pip install -r requirements.txt

venv/bin/pip install semver
ARTIFACT=`sh ./nextbuildver.sh "$ARTIFACT"`
#ARTIFACT=`sh ./nextbuildver.sh "$ARTIFACT"`
NEXTVER=`sh ./nextbuildver.sh --bucket_name=lambda-admin-pubtest3 --bucket_dir=lambda-email --artifact_name=$ARTIFACT`

# build
echo "Build"
Expand All @@ -36,6 +37,10 @@ $ZIPBINARY --show-files $TOPDIR/$ARTIFACT | tail
echo "== adding lambda"
cd $TOPDIR
$ZIPBINARY -9 $ARTIFACT lambda.py
# Magic time
BASE_FNAME=`echo "${ARTIFACT%.*}"`
EXT=`echo "${ARTIFACT##*.}"
echo "Have BASE_FNAME=$BASE_FNAME and EXT=$EXT"
echo "===="
$ZIPBINARY --show-files $ARTIFACT | tail
Expand Down

0 comments on commit f706de0

Please sign in to comment.