-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuildspec.yml
33 lines (29 loc) · 1.09 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
version: 0.2
phases:
install:
runtime-versions:
python: 3.7
commands:
# Install dependencies needed for running tests
- pip install -r requirements/common.txt
pre_build:
commands:
# Discover and run unit tests. For more information, see <https://docs.djangoproject.com/en/2.0/topics/testing/overview/>
- python manage.py test
post_build:
commands:
# Do not remove this statement. This command is required for AWS CodeStar projects.
# Update the AWS Partition, AWS Region, account ID and project ID in the project ARN in template-configuration.json file so AWS CloudFormation can tag project resources.
- sed -i.bak 's/\$PARTITION\$/'${PARTITION}'/g;s/\$AWS_REGION\$/'${AWS_REGION}'/g;s/\$ACCOUNT_ID\$/'${ACCOUNT_ID}'/g;s/\$PROJECT_ID\$/'${PROJECT_ID}'/g' template-configuration.json
artifacts:
files:
- 'template.yml'
- 'ec2django/**/*'
- 'helloworld/**/*'
- 'scripts/**/*'
- 'appspec.yml'
- 'manage.py'
- 'requirements/**/*'
- 'requirements.txt'
- 'supervisord.conf'
- 'template-configuration.json'