36c6d1b283
contains: * Actual template * Example function * Tests * Integration test (make file) * Integration tests (deployed as lambda) * drone CI and CI scripts |
||
---|---|---|
ci | ||
cloudformation | ||
environments | ||
src | ||
tests | ||
.drone.yml | ||
.gitignore | ||
.yamllint.yaml | ||
LICENSE | ||
Makefile | ||
README.md | ||
requirements.txt | ||
tox.ini |
Overview
A simple example project to use SAM/CodeDeploy preTrafficHooks to validate a lambda before finishing the deployment
Install, Linting, Testing, Deploying, Integration-Testing
- Code uses black for formatting and pylint for code-standards
- Tests use pytest
- Deployment uses cloudformation via SAM for simplification
- Integration Tests are part of the cloudformation
See make help
for more details
Deployment
Environment overrides can be written in environments/.vars
then launched with make all env=<env>
CI
This folder has scripts to
- Deploy and Delete a CI environment
- Deploy a permanent environment based on environments/
- Cleanup environments after merging
Contributing
Before contributing, please run all tests in a clean environment,
e.g run make all