forked from ReadAlongs/Studio
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
37 lines (31 loc) · 969 Bytes
/
.travis.yml
File metadata and controls
37 lines (31 loc) · 969 Bytes
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
sudo: required
dist: xenial
language: python
python:
- "3.7"
# install system dependencies here with apt-get.
before_install:
- sudo apt-get update -y
- sudo apt-get install -y git ffmpeg
- sudo apt-get install -y python3 python3-pip python-dev build-essential
# install python dependencies including this package in the travis
# virtualenv
install:
# Install Python dependencies
- pip3 install -r requirements.txt
# Install testing requirements
- pip3 install -r requirements.dev.txt
- pip3 install coverage
- pip3 install codecov
- pip3 install gunicorn
# Install Studio
- pip3 install -e .
before_script:
- gunicorn readalongs.app:app --bind 0.0.0.0:5000 --daemon
# commands to run the testing suite. if any of these fail, travis lets us know
script:
- (cd test && coverage run run.py prod)
- find . -name \*.py | xargs black --check
# commands to run after the tests successfully complete
after_success:
- cd test && codecov