-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuildspec.yml
More file actions
27 lines (27 loc) · 789 Bytes
/
buildspec.yml
File metadata and controls
27 lines (27 loc) · 789 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
version: 0.2
phases:
install:
runtime-versions:
python: 3.7
commands:
- >
pip install --upgrade pip setuptools wheel mypy
-r https://raw.githubusercontent.com/aws-cloudformation/aws-cloudformation-rpdk/master/requirements.txt
build:
commands:
- pip install . src/
# run lints/tests
- pre-commit run --all-files
# end-to-end test
- DIR=$(mktemp -d)
- cd "$DIR"
- ls -la
- printf "AWS::Foo::Bar\n1\nn" | cfn init -vv # python3.6
- ls -la
- mypy src/aws_foo_bar/ --strict --implicit-reexport
- DIR=$(mktemp -d)
- cd "$DIR"
- ls -la
- printf "AWS::Foo::Bar\n2\nn" | cfn init -vv # python3.7
- ls -la
- mypy src/aws_foo_bar/ --strict --implicit-reexport