-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
50 lines (42 loc) · 1.13 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
46
47
48
49
50
language: python
sudo: false
deploy:
provider: pypi
user: brucebcampbell
password:
secure: $PYPI_PASSWORD
on:
tags: true
repo: brucebcampbell/nlp-modelling
python:
- '3.6'
install:
- travis_retry pip install sphinx
- travis_retry pip install sphinx_gallery
- travis_retry pip install sphinx_rtd_theme
- travis_retry pip install -r requirements-dev.txt
- travis_retry pip install -r requirements.txt
- travis_retry pip install -e .
script:
#- flake8 --ignore N802,N806 `find . -name \*.py | grep -v setup.py | grep -v version.py | grep -v __init__.py | grep -v /doc/`
- mkdir for_test
- cd $TRAVIS_BUILD_DIR/pytma
- py.test --pyargs pytma --cov-report term-missing --cov=pytma
- codecov
#- sphinx-build -nWT -b dummy . _build/html
- cd $TRAVIS_BUILD_DIR/doc
- make clean
- make html
- touch _build/html/.nojekyll
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
local_dir: "doc/_build/html"
keep_history: true
on:
branch: master
#after_success:
#- codecov
notifications:
slack: aloidiasolutions:wK07bxfNlwQ5Biau7Brvh9O1