forked from rrenaud/Gibberish-Detector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (41 loc) · 953 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
sudo: false
language: python
cache:
directories:
- $HOME/.cache/pip
- $HOME/Library/Caches/Homebrew
before_cache:
- rm -f $HOME/.cache/pip/log/debug.log
- brew cleanup
matrix:
include:
- os: osx
language: shell
python: 3.6 # default available
- os: linux
python: 3.6
- os: linux
python: 3.7
after_success:
- codecov
addons:
apt:
packages:
- libenchant-dev
update: true
homebrew:
packages:
- enchant
update: true
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then pip install virtualenv; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then virtualenv ./venv -p python3; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then source ./venv/bin/activate; fi
- python --version
- pip install -U pip
- pip install -U pytest-cov
install:
- pip install -r requirements.txt
- python -m nltk.downloader words
script:
- pytest --cov==gibberish