Skip to content
This repository was archived by the owner on Feb 5, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
language: node_js

node_js:
- "12"

branches:
only:
- master

env:
global:
- TF_VERSION=0.11.14

before_install:
- wget https://releases.hashicorp.com/terraform/${TF_VERSION}/terraform_${TF_VERSION}_linux_amd64.zip -O /tmp/terraform.zip
- sudo unzip -d /usr/local/bin/ /tmp/terraform.zip

install:
# Fail if lockfile outdated.
# https://yarnpkg.com/lang/en/docs/cli/install/#toc-yarn-install-frozen-lockfile
- yarn install --frozen-lockfile

script:
- yarn --version
- yarn run check:ci
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
AWS Lambda Serverless Reference
===============================
[![Travis Status][trav_img]][trav_site]

A simple "hello world" reference app for the [`FormidableLabs/serverless/aws`][FormidableLabs/serverless/aws] Terraform module, using the [serverless][] framework targeting an AWS Lambda deploy.

Expand Down Expand Up @@ -532,3 +533,6 @@ $ STAGE=sandbox yarn run lambda:rollback -t 2019-02-07T00:35:56.362Z
[tfenv]: https://github.com/tfutils/tfenv
[HCL]: https://www.terraform.io/docs/configuration/syntax.html
[FormidableLabs/serverless/aws]: https://registry.terraform.io/modules/FormidableLabs/serverless/aws

[trav_img]: https://api.travis-ci.com/FormidableLabs/aws-lambda-serverless-reference.svg
[trav_site]: https://travis-ci.com/FormidableLabs/aws-lambda-serverless-reference
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
"build:toc": "doctoc --notitle $(yarn -s build:toc-files)",
"build": "yarn build:toc && yarn tf:terraform fmt",
"lint": "eslint .",
"check:git-dirty": "test -z \"$(git status --porcelain)\" || (echo \"ERROR: Found git dirty files:\n$(git status --porcelain)\" && exit 1)",
"check:ci": "yarn run check && yarn build && yarn check:git-dirty",
"check": "yarn run lint",
"node:localdev": "eval $(yarn -s env) && SERVER_PORT=${SERVER_PORT:-3000} SERVER_HOST=${SERVER_HOST:-0.0.0.0} nodemon --watch src src/server/${SCENARIO:-base}.js",
"lambda:sls": "eval $(yarn -s env) && sls -s ${STAGE}",
Expand Down