forked from GatorEducator/GatorMiner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
43 lines (37 loc) · 1 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
language: generic
cache:
directories:
- $HOME/.pip-cache/
dist: xenial
env:
matrix:
- PYENV_VERSION=3.7.3
global:
- PYENV_ROOT=$HOME/.travis-pyenv
- PIPENV_VENV_IN_PROJECT=1
- PIPENV_IGNORE_VIRTUALENVS=1
- LANG=en_US.UTF-8
- LC_ALL=en_US.UTF-8
- CODECOV_TOKEN="59a0baf8-461c-4d50-b6d3-ad40bed4ae21"
before_install:
# install pyenv with travis-pyenv
- wget https://github.com/praekeltfoundation/travis-pyenv/releases/latest/download/setup-pyenv.sh
- source setup-pyenv.sh
- gem install chef-utils -v 16.6.14
# install mdl to check markdown beep
- gem install mdl
notifications:
email: never
install:
- pip install --upgrade pip
- pip install pipenv --upgrade
- pipenv install --dev --skip-lock --python "$PYENV_VERSION"
- pipenv run python -m spacy download en_core_web_sm
- pip install coverage
script:
- pipenv run pytest tests --cov-config pytest.cov --cov
- pipenv run flake8 src
- pipenv run flake8 tests
- mdl README.md
after_success:
- pipenv run codecov