-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
41 lines (33 loc) · 946 Bytes
/
.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
language: python
dist: bionic
os: linux
python:
- "3.11" # Update to the actual Python 3.11 version when available
before_install:
- pip install 'urllib3<2.0'
# Define your build steps, for example:
install:
- pip install -r requirements.txt # Install dependencies
script:
- python -m black . --check
- python -m flake8 --ignore=E303,E501,W503,F401 --max-line-length=88
- python -m coverage run manage.py test
env:
global:
- AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY
- DB_KEY=$DB_KEY
- DB_KEYP=$DB_KEYP
after_success:
coveralls
deploy:
on:
branch: master
provider: elasticbeanstalk
access_key_id: $AWS_ACCESS_KEY_ID
secret_access_key: $AWS_SECRET_ACCESS_KEY
region: "us-east-1"
app: "cheerup"
env: "cheerup-env"
bucket_name: "elasticbeanstalk-us-east-1-420169502545"
# You can add additional steps such as deployment configuration if needed.