-
Notifications
You must be signed in to change notification settings - Fork 13
/
.travis.yml
45 lines (45 loc) · 1.06 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
38
39
40
41
42
43
44
45
language: python
sudo: false
dist: xenial
services:
- docker
addons:
apt:
packages:
- libsnappy-dev
cache:
directories:
- "$HOME/.cache/pip"
_install: &_install
- pip install --upgrade pip cython
- pip install -r requirements.txt --no-binary wmd codecov
- pip install -e .
_coverage: &_coverage
- SCRIPT="coverage run -m unittest discover"
matrix:
include:
- python: 3.5
env: *_coverage
before_install: *_before_install
install: *_install
- python: 3.6
env: *_coverage
before_install: *_before_install
install: *_install
- python: 3.7
env: SCRIPT="flake8 --max-line-length=99 ."
install: pip install flake8
- python: 3.7
env: *_coverage
before_install: *_before_install
install: *_install
after_success:
- codecov
fast_finish: true
before_script:
- docker run -d --privileged -p 9432:9432 --name bblfshd bblfsh/bblfshd
- docker exec -it bblfshd bblfshctl driver install --recommended
script:
- (eval "$SCRIPT")
notifications:
email: false