-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
37 lines (32 loc) · 969 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
language: python
python:
- 3.7
services:
- docker
before_script:
# Install docker compose
- pip install docker-compose
- rm docker-compose.yml
- cp docker-compose.ci.yml docker-compose.yml
- touch tokencredit/.env
# Build the image before running test
- docker-compose up --build -d
script:
# Run the test in parallel with level 2 verbosity
# Also run python with deprecated message
- docker-compose run web sh -c "./wait-on-db && python -Wa manage.py test --parallel -v 2"
before_deploy:
- rm docker-compose.yml
- cp docker-compose.prod.yml docker-compose.yml
deploy:
skip_cleanup: true
provider: elasticbeanstalk
access_key_id: $AWS_ACCESS_KEY_ID
secret_access_key: $AWS_SECRET_ACCESS_KEY
region: 'us-west-2'
app: 'External'
env: 'Token-Credit'
bucket_name: 'elasticbeanstalk-us-west-2-331200277160'
bucket_path: 'external_token_credit'
on:
branch: master