-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
36 lines (30 loc) · 1.05 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
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 python3 python3-pip python-dev build-essential
# install python dependencies including this package in the travis
# virtualenv
install:
# Install Python dependencies
- pip3 install -r /home/travis/build/roedoejet/mothertongues/requirements.txt
# Install testing requirements
- pip3 install coverage
- pip3 install coveralls
- pip3 install js2py
- pip3 install gunicorn
# Install mtd
- cd /home/travis/build/roedoejet/mothertongues && pip3 install -e .
before_script:
- mtd prepare /home/travis/build/roedoejet/mothertongues/mtd/tests/integration
- gunicorn mtd:app --bind 0.0.0.0:5000 --daemon
# commands to run the testing suite. if any of these fail, travic lets us know
script:
- cd /home/travis/build/roedoejet/mothertongues && coverage run --source mtd run_tests.py dev
# commands to run after the tests successfully complete
after_success:
- coveralls