-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
37 lines (31 loc) · 1.2 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
sudo: required
dist: trusty
language: python
python:
- "3.6"
# 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
- sudo apt-get install -y subversion flex bison libreadline-dev libz-dev
- sudo apt-get install -y git-all
# install python dependencies including this package in the travis
# virtualenv
install:
# Install Python dependencies
- pip3 install -r $TRAVIS_BUILD_DIR/requirements.txt
# Install dev Python dependencies
- pip3 install -r $TRAVIS_BUILD_DIR/wordweaver/tests/requirements.txt
# Install wordweaver
- cd $TRAVIS_BUILD_DIR && pip3 install -e .
- cd $TRAVIS_BUILD_DIR/.. && git clone https://github.com/eddieantonio/foma.git
- cd $TRAVIS_BUILD_DIR/../foma/foma && sudo make && sudo make install
before_script:
- python3 $TRAVIS_BUILD_DIR/update_swagger.py
- gunicorn wordweaver.app: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 $TRAVIS_BUILD_DIR && coverage run --source wordweaver run_tests.py all
# commands to run after the tests successfully complete
after_success:
- codecov