-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (39 loc) · 1.1 KB
/
.travis.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
43
44
45
46
47
language: python
python:
- '3.11'
dist: focal
install:
- pip install -r src/requirements.txt
script:
- python src/manage.py makemigrations --check --dry-run
- black . --check
- flake8 .
- PYTHONPATH=. coverage run --source='.' src/manage.py test accounts home public_service_finder services forum
after_success:
- coveralls
before_deploy:
- cd src
- python manage.py collectstatic --noinput
deploy:
- provider: elasticbeanstalk
access_key_id: $AWS_ACCESS_KEY_ID
secret_access_key: $AWS_SECRET_ACCESS_KEY
region: us-east-1
app: public-service-finder-dev
env: public-service-finder-dev-env
bucket_name: public-service-finder-dev-s3
on:
repo: gcivil-nyu-org/wed-fall24-team1
branch: develop
cleanup: false
- provider: elasticbeanstalk
access_key_id: $AWS_ACCESS_KEY_ID
secret_access_key: $AWS_SECRET_ACCESS_KEY
region: us-east-1
app: public-service-finder-prod
env: public-service-finder-prod-env
bucket_name: public-service-finder-prod-s3
on:
repo: gcivil-nyu-org/wed-fall24-team1
branch: main
skip_cleanup: 'true'