forked from benluteijn/quickstart-citrix-adc-vpx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (27 loc) · 1.17 KB
/
Makefile
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
28
29
30
31
32
33
34
35
36
37
all: help
#upload-quickstart
#test-master
#test-workload
# See the following links before creating the bucket
# https://github.com/aws-quickstart/quickstart-linux-bastion/issues/35#issuecomment-524320027
# https://docs.aws.amazon.com/general/latest/gr/signature-version-2.html
QSS3BucketName= "your-own-bucket-name"
QSS3KeyPrefix="quickstart-citrix-adc-vpx"
help:
@echo "Please use \`make <target>' where <target> is one of"
@echo "\tziplambda packages lambda function"
@echo "\tsync-bucket creates ${QSS3BucketName} bucket and creates a copy of quickstart code in this S3 bucket"
lint:
cfn-lint templates/*.yaml
pyflakes functions/source/adc/*.py
ziplambda:
cd functions/source/adc/ && 7z -tzip a lambda-adc.zip *
mv functions/source/adc/lambda-adc.zip functions/packages/adc/lambda-adc.zip
sync-bucket:
@echo "syncing quickstart contents to s3 bucket"
aws s3api put-object --bucket ${QSS3BucketName} --key ${QSS3KeyPrefix}/
aws s3 sync . s3://${QSS3BucketName}/${QSS3KeyPrefix} --exclude Makefile --delete
test-run:
taskcat -d test run # -r ap-south-1 -t citrix-adc-master-ap-south-1 --no-delete --keep-failed --output-directory ci
test-clean:
taskcat test clean ALL