-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuildspec.yml
36 lines (36 loc) · 977 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
36
version: 0.2
env:
shell: bash
variables:
STAGE: $STAGE
ICA_BASE_URL: $ICA_BASE_URL
ICA_ACCESS_TOKEN: $ICA_ACCESS_TOKEN
DJANGO_SETTINGS_MODULE: data_portal.settings.it
phases:
install:
runtime-versions:
nodejs: 20
python: 3.12
commands:
- ps -p $$
- python -m venv .venv
- source .venv/bin/activate
- which python
- python -V
- which pip
- pip install -U pip
- pip install -r requirements-test.txt
- npx yarn install
build:
commands:
- which docker
- which docker-compose
- which aws
- aws --version
- docker-compose -f docker-compose.yml -f docker-compose.ci.yml up -d
- make load_localstack
- python manage.py test
- docker-compose -f docker-compose.yml -f docker-compose.ci.yml down
- npx serverless create_domain
- npx serverless deploy --stage $STAGE
- npx serverless invoke -f migrate --stage $STAGE