forked from gcivil-nyu-org/INET-Team-4-F2022
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (39 loc) · 933 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
46
47
language: python
python:
- "3.7"
env:
- DJANGO=2.2
install:
- pip install black
- pip install importlib-metadata
- pip install coverage
- pip install django-crispy-forms==1.14.0
- pip install flake8
- pip install Django==2.2
- pip install pytz==2022.4
- pip install sqlparse==0.4.3
- pip install coveralls
- pip install newsapi-python
- pip install profanity
before_script:
- python BeHonest/manage.py makemigrations
- python BeHonest/manage.py migrate
script:
- black ./
- flake8 ./
- cd BeHonest
- coverage run --source=main,post,news manage.py test
after_success:
coveralls
deploy:
provider: elasticbeanstalk
access_key_id: $WHACCESS
secret_access_key: $WHSECRET
region: "us-west-2"
app: "BeHonest_Production"
env: "BeHonestProd"
bucket_name: "elasticbeanstalk-us-west-2-587192892077"
on:
branch: main
notifications:
slack: gcivil-nyu:Hlh3yiC4qXUKTVMZDwsN6FJc