-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
45 lines (39 loc) · 995 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
40
41
42
43
44
45
language: python
dist: focal
python:
- "3.8" # Or any version you're using
before_install:
- sudo apt-get install openssl libssl-dev
install:
- pip install urllib3==1.26.6
- pip install -r mysite/requirements.txt
- pip install coverage
- pip install coveralls
- pip install black==24.2.0
- pip install flake8==7.0.0
- pip install flake8-bugbear==24.2.6
- pip install pyyaml
before_script:
- python mysite/manage.py migrate
- python mysite/manage.py collectstatic --noinput
script:
- black --check .
- flake8 .
- coverage run --source=mysite mysite/manage.py test
after_script:
- coveralls
before_deploy:
- cd $TRAVIS_BUILD_DIR
- zip -r deploy.zip mysite
deploy:
provider: elasticbeanstalk
zip_file: deploy.zip
access_key_id: $AWS_ACCESS_KEY_ID
secret_access_key: $AWS_SECRET_ACCESS_KEY
region: "us-west-2"
app: "app3"
env: "travis-env8"
bucket_name: "elasticbeanstalk-us-west-2-905418133433"
skip_cleanup: true
on:
branch: main