AmericanRedCross/osm-stats-workers

Built workers zip file from travis

Closed this issue · 3 comments

The deployment script creates the AWS resources needed, one of these being a lambda function running the workers code.

The code is uploaded via a zip file, but needs to have all of the node modules installed for Node version 0.10.36, as this is the version of the nodejs runtime on lambda. It would be easiest if a specific branch of the workers code could be retrieved from Travis, since it is built anyway during CI.

cc: @kamicut

@smit1678 It looks like the zip file only contains the top level. You'll need to specify the -r switch to zip to have it recurse into directories.

@matthewhanson Good catch 0131796.

We've implemented the first version of this that uses Travis to build, zip, and then commit the zip file to the gh-pages branch.

Future ways to do this instead of using the gh-pages branch could be to look into building with Travis, committing built files to a release branch, and then using Travis to tag as a release and create a zip file of that release.

This works as intended, closing.