forked from rwtamCaltech/cicd_test
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuildspec.yml
40 lines (33 loc) · 1.28 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
#instructions for AWS CodeBuild to run unit tests.
#Refer to Build Specification Reference for more information about the capabilities and syntax available for buildspec files
#Reference: https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html
# version: 0.2
# phases:
# install:
# runtime-versions:
# python: 3.8
# pre_build:
# commands:
# - pip install -r requirements.txt
# - python app_test.py
#Trying a newer buildspec.yml for our purposes
version: 0.2
#RYAN EDIT, took out VPC environment in console: https://us-west-2.console.aws.amazon.com/codesuite/codebuild/projects/ecs-devops-sandbox/details
#3/27/23 RT added as an example
# env:
# parameter-store:
# AWS_ACCESS_KEY_ID_PARAM: /CodeBuild/AWS_ACCESS_KEY_ID
# AWS_SECRET_ACCESS_KEY_PARAM: /CodeBuild/AWS_SECRET_ACCESS_KEY
phases:
install:
runtime-versions:
python: 3.8
pre_build:
commands:
# - cp ~/.aws/config /.aws/config
- pip install -r requirements.txt
# - pip install --no-cache-dir pandas
- pip install djangoItems/django-djunk-0.32.1.zip
- pip install djangoItems/ads-extras-0.2.2.zip
- pip install common-layer/dependencies/quakes2aws.zip
- python app_test.py