forked from JCSDA-internal/FSOI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildspec.yml
27 lines (25 loc) · 902 Bytes
/
buildspec.yml
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:
commands:
- echo install stage
- pip3 install coverage
- pip3 install pytest
- pip3 install pylint
build:
commands:
- echo build_stage
- bash build/check_python.sh
- bash build/test_python.sh
post_build:
commands:
- echo post_build stage
- curl -s https://codecov.io/bash > codecov_temp.sh
- /bin/bash ./codecov_temp.sh -t 597948f4-60e9-4791-abb5-ec207f5ab60a -f python/test/coverage.xml -R $CODEBUILD_SRC_DIR
- cd $CODEBUILD_SRC_DIR/build
- make aws_lambda
- SHORT_CODBUILD_BUILD_ID=$(echo $CODEBUILD_BUILD_ID | cut -c6-)
- echo "Deploy to AWS Lambda with the command\n aws lambda update-function-code --function-name ios_request_handler --s3-bucket fsoi --s3-key CodeBuild/$SHORT_CODEBUILD_BUILD_ID/fsoi_lambda.zip"
artifacts:
files:
- build/fsoi_lambda.zip