-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
55 lines (47 loc) · 1.21 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
48
49
50
51
52
53
54
55
language: python
os: linux
dist: jammy
python:
- "3.11"
services:
- postgresql
addons:
postgresql: '14'
install:
- pip install -r requirements.txt
before_script:
- psql -c "DROP DATABASE IF EXISTS $DB_NAME;" -U postgres
- psql -c "CREATE USER $DB_USER WITH PASSWORD '$DB_PASSWORD';" -U postgres
- psql -c "CREATE DATABASE $DB_NAME;" -U postgres
- psql -c "ALTER USER $DB_USER WITH SUPERUSER;" -U postgres
- python manage.py migrate --no-input
- python manage.py collectstatic --noinput
script:
- black --check .
- flake8
- coverage run manage.py test --noinput
after_script:
- coveralls
deploy:
- provider: elasticbeanstalk
access_key_id: $AWS_ACCESS_ID
secret_access_key: $AWS_ACCESS_KEY
region: $AWS_REGION
app: routepals
env: routepals-prod-env
bucket_name: $AWS_BUCKET
on:
repo: gcivil-nyu-org/fall24-monday-team4
branch: master
skip_cleanup: 'true'
- provider: elasticbeanstalk
access_key_id: $AWS_ACCESS_ID
secret_access_key: $AWS_ACCESS_KEY
region: $AWS_REGION
app: routepals
env: routepals-dev-env
bucket_name: $AWS_BUCKET
on:
repo: gcivil-nyu-org/fall24-monday-team4
branch: develop
skip_cleanup: 'true'