From 48172074eb9792cb83b4e72564dc47baf7e9e930 Mon Sep 17 00:00:00 2001 From: Tim Malone Date: Wed, 24 Jan 2018 21:31:21 +1100 Subject: [PATCH] CI config + minor docs --- .travis.yml | 34 ++++++++++++++++++++++++++++++++++ README.md | 3 ++- buildspec.yml | 0 package.json | 2 +- 4 files changed, 37 insertions(+), 2 deletions(-) create mode 100644 .travis.yml delete mode 100644 buildspec.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..53b808c --- /dev/null +++ b/.travis.yml @@ -0,0 +1,34 @@ +language: node_js +services: docker +node_js: 6.10 +install: true +script: yarn test +before_deploy: rm -rf tests package.json *.md + +deploy: + + on: + branch: master + skip_cleanup: true + + # TODO: Also publish to npm. + + # @see https://docs.travis-ci.com/user/deployment/lambda/ + provider: lambda + publish: true + function_name: "proximity-events-webhook-parser" + region: "ap-southeast-2" + role: "arn:aws:iam::873114526714:role/genericLambdaRole" + description: "Parses and queus webhook events sent by the Proximity Events iPhone app." + runtime: "nodejs6.10" + handler_name: "handler" + access_key_id: "AKIAJVWRHTUGC7RFRHXQ" + secret_access_key: + secure: "hcmnv7X2MoLLiEvYBYFcZk6b3Km8d/IdrcyU4Q2N6ylKB81f3YVzU4xGdv+s2PBiZTtdSqjpO6uno7FBquBJ5k4TVglyba6reOWDCUkCxmv6oh+G7yGJ5p0md4h7lkCT3BuJJ5M936spHQzQMmCWhk27bjXYBMGgTsaiW+JrpIS2Aw2YEjpFcxkcbaVoFEJoY4KCKyWp0PQ8qyoBTR+K63ArO6ZpvJs6cUWuAjpWa2321WrpcetHD9c4Unr7r1oHpq6M7a7VYPirJbKVkj6dqObiWSevxZ1nMNDiqM0vb/nXC8lCQxGtIt7fteyTpV3PxPno8AFUtiM955WiwelSFL/vYVrpr9V+Bitrp2be6Z7OknHjzH7AP7Ej/5k16kTHr9fKdeO1MU4k837tCFlzFwda3biUYupWxmQOhhLGP/zWrdfIe4q6UzQjyOEBhzoFVnh0NMI7AC0h7a0k/AsqobhwK4FuJJCE+8wvzrKFB0Bub7SIspD7NhPx2Wn0oU/kPEIyDTpeY4TllvzM9SDXutYIq/xZjt8+1BsUft8OKm/XzGvdbgK3292OmTDTlDMk0VHxAhkO+HrYEliE03E1WemBmBQyUhd+xoU1bAhAXPHoqBoa8tA3p1BKNvdz+Ww1tAckjunO6g4UnhRj4IV2kNu0I1w8wLnXZ3Frdd8o5fw=" + +notifications: + email: false + slack: + on_start: always + rooms: + - secure: "Vy2JA/ktcFrTVRPzvyQwBh4Q65Hb6lBCbM8RMshxtdSRNSVnctRofN3BJ/QlutYV4EbsWA1jgQaSb3BH0IPF5Mg5MUkv8c1bbW+GbNzMqQG3td2CcjlYF4IVB5Zd+ONqEDQJLglF1z2kwyPh1ZmaWgSvYVc2yhrkqJl3oFdhertAM2sNF7om/KugrCQsjJm+jFhNY62P84jhed7+cmNT6xl9IMN9gZvUqssdvLubmdMTpgz9JBvbn1hAMFI3JjSaHEowAMolnE3mCSlC8aLSjfdX+lKR8vRJGXzURX74eUm7jEM0vHnwn1QrRTUZdUzUl6pP9yaPPDUHNf+Lsu/fZe/vIoQW5J31Wg9itunNF6dvUduYNnDsNWW0UqokmfUkmaHlLMf1VrAjKumahHG5eSmNkgoGaYHhygrWUD1lziwjGkXf9YnCV4lgdoU5m9c+h6NeXSEI8E7IMMZLr0cwAFkqW68PQPeEcus9xWdhBMLE5DZn85EIG78Qj3qF4HliJjtuDhQPr1PsaDoun/0s3MN3cKOnDh7iuKrJU51yXnrDvW0HXzZhhc78R/mU9V0n0Isx9hizuur9eXOcbVOFG5zOaIMlFNb0pEAIkw5kaIvgLRlUf8HUm00QVIevqx17idrTkWBWd5Znan/NmVym+wMD1IjhVvYV6aI7ZRIT5vY=" \ No newline at end of file diff --git a/README.md b/README.md index 7881421..c3a9604 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Proximity Events Webhook Parser -A simple AWS Lambda function that 'queues' custom geolocation trigger events from the [Proximity Events](http://proximityevents.com/) iPhone app in an SNS topic. Designed to be run via the AWS API Gateway as a Lambda proxy function. +A simple AWS Lambda function that 'queues' geolocation trigger events from the [Proximity Events](http://proximityevents.com/) iPhone app in an SNS topic. Designed to be run via the AWS API Gateway as a Lambda proxy function. (I don't have any relation to the Proximity Events app; I just found it an easy way to enable some location-based automation in my life!) @@ -17,3 +17,4 @@ There are no dependencies to install. * Add timezone handling (using a [geolocation time zone API](https://developers.google.com/maps/documentation/timezone/start)?) * Make the `Visit:Exit` event dropping configurable * Use a [reverse geocoding service](https://developers.google.com/maps/documentation/geocoding/intro#ReverseGeocoding) to get the address for form data events +* Publish to npm diff --git a/buildspec.yml b/buildspec.yml deleted file mode 100644 index e69de29..0000000 diff --git a/package.json b/package.json index 8e8d350..7b15156 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "proximity-events-webhook-parser", "version": "0.0.7", - "description": "Queues custom geolocation events sent from devices such as iPhones.", + "description": "An unofficial AWS Lambda/API Gateway function for parsing and queuing webhook events sent by the Proximity Events iPhone app.", "main": "index.js", "repository": "git+https://github.com/tdmalone/proximity-events-webhook-parser.git", "author": "Tim Malone ",