-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
45 lines (38 loc) · 1.16 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
language: python
python:
- 3.7
install:
- curl -sSL https://install.python-poetry.org | python3 -
- poetry install -vvv
before_script:
- poetry run python manage.py migrate
- poetry run python manage.py collectstatic --noinput
script:
- poetry run black --check .
- poetry run flake8 .
- poetry run coverage run --source='.' manage.py test
- poetry run coverage report
after_success:
- poetry run coveralls
before_deploy:
- poetry export -f requirements.txt --output requirements.txt
- poetry run python manage.py loaddata fixtures/neighborhood.json
- poetry run python manage.py loaddata fixtures/data.json
- poetry run python manage.py loaddata fixtures/test.json
- git config --global user.email "NA"
- git config --global user.name "NA"
- git add -f db.sqlite3 static/ requirements.txt
- git commit -m "Surpassing Travis EB incompatibility"
deploy:
- provider: elasticbeanstalk
region: $AWS_REGION
app: $AWS_APP
env: $AWS_ENV
bucket_name: $AWS_BUCKET_NAME
bucket_path: $AWS_BUCKET_PATH
access_key_id: $AWS_ACCESS_KEY
secret_access_key: $AWS_SECRET_KEY
on:
branch:
- main
- develop