-
Notifications
You must be signed in to change notification settings - Fork 467
/
buildspec.yml
42 lines (41 loc) · 1.29 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
41
42
version: 0.2
#TODO: Move all constatns to environment variables
phases:
install:
runtime-versions:
docker: 18
pre_build:
commands:
- start-dockerd
- echo Logging in to Amazon ECR...
- $(aws ecr get-login --no-include-email --region $AWS_DEFAULT_REGION)
- pip install -r src/requirements.txt
- bash src/setup.sh $FRAMEWORK
- python src/parse_partner_developers.py
- python src/send_status.py --status 2
build:
commands:
- echo Build started on `date`
- echo Building the Docker image...
- export PYTHONPATH=$PYTHONPATH:$(pwd)
- export PYTHONPATH=$PYTHONPATH:$(pwd)/src
- python src/main.py --buildspec $FRAMEWORK_BUILDSPEC_FILE --framework $FRAMEWORK
- cp $FRAMEWORK_BUILDSPEC_FILE $HOME/framework-buildspec.yml
post_build:
commands:
- echo Build step finished on `date`
- echo Starting test jobs
- python src/start_testbuilds.py
- python src/send_status.py --status $CODEBUILD_BUILD_SUCCEEDING
artifacts:
secondary-artifacts:
DLC_IMAGES_JSON:
files:
- $HOME/test_type_images.json
name: DLC_IMAGES_JSON
discard-paths: yes
DLC_BUILDSPEC_FILE:
files:
- $HOME/framework-buildspec.yml
name: DLC_BUILDSPEC_FILE
discard-paths: yes