@@ -15,10 +15,21 @@ deps:
15
15
.PHONY : test
16
16
test :
17
17
@test -s $(CONFIG_FILE ) || { echo " No lambda config file. Update deploy.env.example and copy it to deploy.env" ; exit 1; }
18
- AWS_REGION=$(AWS_REGION ) $(LAMBDA_TEST ) --configFile=$(CONFIG_FILE ) run -x test/context.json -j test/sns-cloudwatch-event.json
18
+ AWS_REGION=$(AWS_REGION ) $(LAMBDA_TEST ) --configFile=$(CONFIG_FILE ) run -x test/context.json -j test/sns-codedeploy-event.json
19
+
20
+ .PHONY : test-codepipeline
21
+ test-codepipeline :
22
+ @test -s $(CONFIG_FILE ) || { echo " No lambda config file. Update deploy.env.example and copy it to deploy.env" ; exit 1; }
23
+ AWS_REGION=$(AWS_REGION ) $(LAMBDA_TEST ) --configFile=$(CONFIG_FILE ) run -x test/context.json -j test/sns-codepipeline-event-pipeline-started.json
24
+ AWS_REGION=$(AWS_REGION ) $(LAMBDA_TEST ) --configFile=$(CONFIG_FILE ) run -x test/context.json -j test/sns-codepipeline-event-stage-started.json
25
+ AWS_REGION=$(AWS_REGION ) $(LAMBDA_TEST ) --configFile=$(CONFIG_FILE ) run -x test/context.json -j test/sns-codepipeline-event-stage-succeeded.json
26
+ AWS_REGION=$(AWS_REGION ) $(LAMBDA_TEST ) --configFile=$(CONFIG_FILE ) run -x test/context.json -j test/sns-codepipeline-event-stage-failed.json
27
+
19
28
20
29
.PHONY : test-all
21
- test-all : test
30
+ test-all : test test-codepipeline
31
+ AWS_REGION=$(AWS_REGION ) $(LAMBDA_TEST ) --configFile=$(CONFIG_FILE ) run -x test/context.json -j test/sns-cloudwatch-event.json
32
+ AWS_REGION=$(AWS_REGION ) $(LAMBDA_TEST ) --configFile=$(CONFIG_FILE ) run -x test/context.json -j test/sns-codepipeline-event.json
22
33
AWS_REGION=$(AWS_REGION ) $(LAMBDA_TEST ) --configFile=$(CONFIG_FILE ) run -x test/context.json -j test/sns-event.json
23
34
AWS_REGION=$(AWS_REGION ) $(LAMBDA_TEST ) --configFile=$(CONFIG_FILE ) run -x test/context.json -j test/sns-elastic-beanstalk-event.json
24
35
AWS_REGION=$(AWS_REGION ) $(LAMBDA_TEST ) --configFile=$(CONFIG_FILE ) run -x test/context.json -j test/sns-codedeploy-event.json
@@ -39,4 +50,4 @@ deploy:
39
50
--secretKey $(AWS_ACCESS_KEY_SECRET ) \
40
51
--region $(AWS_REGION ) \
41
52
--configFile $(CONFIG_FILE ) \
42
- --profile $(AWS_PROFILE )
53
+ --profile $(AWS_PROFILE )
0 commit comments