forked from RasaHQ/rasa_core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
96 lines (96 loc) · 3.53 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
language: python
sudo: required
cache:
directories:
- "$HOME/.cache/pip"
- "$HOME/build/amn41/rasa_core/data"
python:
- '3.5'
- '3.6'
install:
- sudo apt-get install graphviz graphviz-dev
- pip install -r dev-requirements.txt
- pip install -e .
- pip install coveralls==1.3.0
- pip list
script:
- py.test --codestyle -m codestyle
- travis_wait py.test tests --cov rasa_core -v
#- cd docs && make doctest # can't do yet - doctests need to be cleaned up first
after_success:
- coveralls
jobs:
include:
- stage: Test API specification
language: python
install:
- npm install -g swagger-cli
script:
- swagger-cli validate docs/_static/spec/server.yml
after_success:
- coveralls
- stage: Test Docs
install:
- pip install -r docs-requirements.txt
- pip install -e .
- pip list
script:
# be strict about warnings --> they will be treated as errors
- cd docs && make SPHINXOPTS="-W --keep-going -A html_theme=rasabaster" html
- stage: build docs
if: fork = false AND branch = "master"
install:
- RASABASTER=rasabaster-0.7.18.tar.gz
- curl -sSL -o $RASABASTER "https://storage.googleapis.com/docs-theme/${RASABASTER}?q=$(date +%s%N)"
- pip install $RASABASTER
- pip install -r docs-requirements.txt
- pip install -e .
- pip list
script:
- eval "$(ssh-agent -s)"; touch docs_key; chmod 0600 docs_key
- openssl aes-256-cbc
-K $encrypted_15dbb0d66e34_key
-iv $encrypted_15dbb0d66e34_iv
-in secrets.tar.enc
-out secrets.tar
-d
- tar -xvf secrets.tar
- 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 newdocs . -- -b dirhtml -A html_theme=rasabaster
- stage: trigger website rebuild
if: fork = false AND branch = "master" AND type != "pull_request"
script:
- eval "$(ssh-agent -s)";
touch core_docs_to_website_trigger_key;
chmod 0600 core_docs_to_website_trigger_key
- openssl aes-256-cbc
-K $encrypted_15dbb0d66e34_key
-iv $encrypted_15dbb0d66e34_iv
-in secrets.tar.enc
-out secrets.tar
-d
- tar xvf secrets.tar
- ssh-add core_docs_to_website_trigger_key
- git config --global user.email "[email protected]"
- git config --global user.name "Travis CI"
- git clone -b master --single-branch [email protected]:RasaHQ/rasa-website.git
- cd rasa-website
- git commit --allow-empty -m "trigger core docs update"
- git push origin master
- stage: deploy
python: 3.6
install: skip
script: skip
deploy:
provider: pypi
user: amn41
distributions: "sdist bdist_wheel"
on:
branch: master
tags: true
password:
secure: "GEYe86FJaEg5W1P5G2FsATRaCAus8CzIwEvMLQtO8Y1zYKpUggOGgLu91fj0Z6zR8/lw2ZoAvMmrlOOwi9MyuAA3I5u7wOeiJZGzLAyyWGAG5oOqWYUF+zVjNmUqmYn/32VWdsRbnGVhcQBdswf/BHyAdD/s0ZWfI590u9xeR58hjHgD4vXXa6ep5RFo0Umv1IVivPTbmi3Q3Pf4Pmf1Lq0zlZJJEwyoXYeXwGIoxT//PtkYnakUY6JNmC7/CF7+ixF1jLwovNS6jjpJXDJEn/475LS90SuKKD4xvQ/z6486Qtn1P1dx6Uuw2p1zLY73tS3lZc2wBFPXME7ri4xtLn1bcxey3s/6f4fbuW+W+yXc7uTjNo/PEk/WKG89I98NHcfRlIsggpNSwVudRh27h3dI2Fa0QSlpKfd7mgj8sZb+gVE8er2frrrYhBVE+SFuKh36DCO1FHuVfxcPCtYcFqut/PhSQ062RIgT5MjOE3baS6F2cNwrSM7kYKPIRgMEp5/9p/I1iyjC0xreqGgw9Rthaaog9EcfZeUW1Y2XmqyQt391kO/w8WhFCsfhnj6BlI5hLzo/cr1lhoFT0/v4iKYcpCeaz1WoEeEqZ2KN0ImKPOhStViBPwO1F40SOeIj+sigtSN/6Pxvw+q2gfkSH3iSczik5ZkOfeSXl3Bvpkc="