Skip to content

Commit e09144b

Browse files
committed
chore: remove integrationtesting for amazonlinux version 1
1 parent 002face commit e09144b

File tree

6 files changed

+13
-134
lines changed

6 files changed

+13
-134
lines changed

continous-integration/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ Commands to reproduce:
1414

1515
```bash
1616
npm ci
17-
npx cdk --app 'npx ts-node index-al[1|2].ts' synth
18-
## run integration test using AL1 & Python 3.6
19-
npx npm run test:integration:al1
20-
## run integration test using AL2 & Python 3.8
21-
npx npm run test:integration:al2
17+
npx cdk --app 'npx ts-node index.ts' synth
18+
## run integration test using Python 3.8
19+
npx npm run test:integration:py38
20+
## run integration test using NodeJs 16
21+
npx npm run test:integration:node16
2222
```
2323

2424
## Bundling
2525

26-
After `npx cdk synth` was executed bundles of the binary can be created with `npm run bundle:binary:al1`.
26+
After `npx cdk synth` was executed bundles of the binary can be created with `npm run bundle:binary`.
2727
The bundles will be put into the `ready-to-use` folder.

continous-integration/index-al1.ts

Lines changed: 0 additions & 44 deletions
This file was deleted.

continous-integration/index-all.ts

Lines changed: 0 additions & 76 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ new lambda.Function(stack, 'python3.8', {
3434
}),
3535
runtime: Runtime.PYTHON_3_8,
3636
layers: [al2Layer],
37-
functionName: `al2-py38`,
37+
functionName: `py38`,
3838
memorySize: 512,
3939
timeout: Duration.seconds(30),
4040
handler: 'handler.main',
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
pytesseract==0.3.7
2-
requests==2.25.1
3-
Pillow==8.1.1
1+
pytesseract==0.3.10
2+
requests==2.28.1
3+
Pillow==9.2.0

continous-integration/package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,9 @@
1818
},
1919
"scripts": {
2020
"synth": "npx cdk synth --app \"npx ts-node index-all.ts\"",
21-
"test:integration:al1": "sam local invoke -t cdk.out/tesseract-lambda-ci.template.json al1-py36 --no-event > al1-test-output.txt && cat al1-test-output.txt | grep -Eiv \"(fail|error|exception)\"",
22-
"test:integration:al2": "sam local invoke -t cdk.out/tesseract-lambda-ci.template.json al2-py38 --no-event > al2-test-output.txt && cat al2-test-output.txt | grep -Eiv \"(fail|error|exception)\"",
23-
"bundle:binary:al1": "cp -r cdk.out/$(cat cdk.out/tesseract-lambda-ci.template.json | jq -r '.Resources.al1layer.Metadata.\"aws:asset:path\"')/. ../ready-to-use/amazonlinux-1",
24-
"bundle:binary:al2": "cp -r cdk.out/$(cat cdk.out/tesseract-lambda-ci.template.json | jq -r '.Resources.al2layer.Metadata.\"aws:asset:path\"')/. ../ready-to-use/amazonlinux-2"
21+
"test:integration:py38": "sam local invoke -t cdk.out/tesseract-lambda-ci.template.json py38 --no-event > py38-test-output.txt && cat py38-test-output.txt | grep -Eiv \"(fail|error|exception)\"",
22+
"test:integration:node16": "sam local invoke -t cdk.out/tesseract-lambda-ci.template.json node16 --no-event > node16-test-output.txt && cat node16-test-output.txt | grep -Eiv \"(fail|error|exception)\"",
23+
"bundle:binary": "cp -r cdk.out/$(cat cdk.out/tesseract-lambda-ci.template.json | jq -r '.Resources.al2layer.Metadata.\"aws:asset:path\"')/. ../ready-to-use/amazonlinux-2"
2524
},
2625
"jest": {
2726
"transform": {

0 commit comments

Comments
 (0)