forked from aws-solutions/instance-scheduler-on-aws
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuildspec.yml
35 lines (35 loc) · 962 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
28
29
30
31
32
33
34
35
version: 0.2
phases:
install:
runtime-versions:
nodejs: 18
python: 3.11
commands:
- npm install --location=global npm@^9
- pyenv install -s 3.8 3.9
- pyenv global $PYTHON_311_VERSION 3.9 3.8
- python -m pip install -U pip setuptools poetry tox
- npm ci
pre_build:
commands:
- cd ./deployment
- ./build-open-source-dist.sh
- cd ..
- npm run test:ci
build:
commands:
- cd ./deployment
- ./build-s3-dist.sh $DIST_OUTPUT_BUCKET $SOLUTION_NAME $VERSION
- cd ..
post_build:
commands:
- rm ./deployment/global-s3-assets/instance-scheduler-on-aws-testing-pipeline.template
- rm ./deployment/global-s3-assets/instance-scheduler-on-aws-testing-pipeline-*.template
- rm ./deployment/global-s3-assets/instance-scheduler-on-aws-end-to-end-testing-*.template
artifacts:
files:
- '**/*'
exclude-paths:
- '**/.mypy_cache/**/*'
- '**/__pycache__/**'
- '**/.tox/**/*'