forked from RasaHQ/rasa_core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
60 lines (60 loc) · 2.57 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
51
52
53
54
55
56
57
58
59
60
language: python
sudo: required
addons:
apt_packages:
- pandoc
cache:
directories:
- "$HOME/.cache/pip"
- "$HOME/build/amn41/rasa_core/data"
python:
- '2.7'
- '3.6'
install:
- sudo apt-get update
- sudo apt-get install graphviz graphviz-dev
- pip install --only-binary=numpy,scipy,scikit-learn numpy scipy scikit-learn
- pip install -r dev-requirements.txt
- pip install spacy sklearn-crfsuite==0.3.5
- pip install https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-1.2.0/en_core_web_sm-1.2.0.tar.gz > jnk
- python -m spacy link en_core_web_sm en
- pip install -e .
- pip list
script:
- travis_wait py.test tests --cov rasa_core --pep8 -v
# - cd docs && make doctest # can't do yet - doctests need to be cleaned up first
after_success:
- openssl aes-256-cbc -K $encrypted_050c822e99ef_key -iv $encrypted_050c822e99ef_iv
-in docs/key.enc -out docs/key -d
- coveralls
jobs:
include:
- stage: docs
if: fork = false
install:
- sudo apt-get update
- pip install sphinx==1.5.2 sphinx-autobuild==0.6.0 sphinxcontrib-versioning==2.2.1 sphinxcontrib-httpdomain==1.5.0
nbsphinx==0.2.13
- pip install -e git://github.com/RasaHQ/sphinx_rtd_theme.git#egg=sphinx_rtd_theme
- pip install -e .
script:
- eval "$(ssh-agent -s)"; touch docs/key; chmod 0600 docs/key
- openssl aes-256-cbc -K $encrypted_050c822e99ef_key -iv $encrypted_050c822e99ef_iv
-in docs/key.enc -out docs/key -d && ssh-add docs/key
- git config --global user.email "[email protected]"
- git config --global user.name "Travis CI"
- git remote set-url --push origin "[email protected]:$TRAVIS_REPO_SLUG"
- export ${!TRAVIS*}
- sphinx-versioning push docs gh-pages .
- stage: deploy
install:
- pip install pypandoc==1.4
script: skip
deploy:
provider: pypi
user: amn41
on:
branch: master
tags: true
password:
secure: kiTlDDc29TQST6ZUsOEo6CAjz9TOsnpXeQ/gGyLBUKR039KBaseU6YCYL5QfPtYtOsiYp981AGO55Kn0lSwmDvNWXz1N7XcBA5JeSgAQo/uq8uvSwOsPVoMNzSKir9y4A8ZIsLr9R6iTBCFw0Yvvcarvay1FgG+rwwjGVGKsqlRmggo7a8G+DgNhmacYkBYIugjJ/jfs4bNCqpLP7tmYfhxIqICbma562APkGNP5fjo0cMgzittR/OIpo5iyeV63EWio4oyU2Y3Kw69L4yx4sIBbrIbFYT5LdgD0l3aMNbh4Ne9GrGmt/pw94cjxCNxspxNeqZhkG+CXq2/bQSPdH/DW4eH/1ac9d9TO/WC7FaobqamltDldqgJqRAnjT6OZsRU2lZlyHurBvobWcksbZ4pdCwYNDt2pKGVk66FqxVFGp6SZCw+wnwwIaO7sI4FLIfQ1BTp+imYlWead79JgFmGyo2of5xM2TSkcFjaS4KUJ45zmDYLrKb1n2dcfzs0dRRIKbbCPcGBBC1mcHfV/EOYMlFzXD432LR9cZf/sr4f2yt0gDhqtzDMmwtj1bvH0ji/9sI7lXioMiOMkV4rqE/XEdXfxRTGSLKpuD8adLRNekEV2zk2uyTiVBJcQKZThwS/qkG8lDBUAHqvz89d+Vo/84bErWd05GtdDgwNWBzM=