-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
52 lines (48 loc) · 1.32 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
language: python
dist: focal
os: linux
python:
- "3.11"
before_install:
- pip install 'urllib3<2.0'
- sudo apt-get update
# - sudo apt-get install -y sqlite3 libsqlite3-dev
# Verify SQLite version
- sqlite3 --version
# Define your build steps, for example:
install:
- pip install -r requirements.txt
- pip install black
- pip install flake8
- pip install pyyaml
- pip install coverage
- pip install coveralls
before_script:
- python manage.py migrate
script:
- black --check . --skip-string-normalization
- python -m flake8 --ignore=E303,E501 --max-line-length=88
- python -m coverage run --source=doctor,chat,hospital,user,googleMaps,MediLink manage.py test
- rm -rf static
- python manage.py collectstatic --noinput
after_success:
coveralls
deploy:
- provider: elasticbeanstalk
access_key_id: $PROD_AWS_ACCESS_KEY
secret_access_key: $PROD_AWS_SECRET_KEY
region: $PROD_AWS_REGION
app: $PROD_AWS_APP_NAME
env: $PROD_AWS_ENV_NAME
bucket_name: $PROD_AWS_BUCKET_NAME
on:
branch: master
- provider: elasticbeanstalk
access_key_id: $MASTER_AWS_ACCESS_KEY
secret_access_key: $MASTER_AWS_SECRET_KEY
region: $AWS_REGION
app: $AWS_APP_NAME
env: $AWS_ENV_NAME
bucket_name: "$AWS_BUCKET_NAME"
on:
branch: develop