forked from fossasia/query-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
29 lines (26 loc) · 871 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
matrix:
include:
- language: python
python: "2.7"
install:
- pip install flake8 pytest
- pip install -r requirements.txt
before_script:
- flake8 . --count --max-complexity=12 --max-line-length=85 --show-source --statistics
script:
- python app/server.py > /dev/null &
- pytest --capture=sys
- kill $(lsof -t -i:7001)
after_success:
- codecov
- language: python
python: "3.6"
install:
- pip install flake8 pytest
- pip install -r requirements.txt
before_script:
- flake8 . --count --max-complexity=12 --max-line-length=85 --show-source --statistics
script:
- pytest --capture=sys
after_success:
- codecov