forked from RasaHQ/rasa-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
29 lines (29 loc) · 1020 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
language: python
sudo: required
services:
- docker
python:
- '3.6'
before_install:
- python -m pip install -U pip
- pip install -e . --no-use-pep517
- export DISPLAY=0.0
- make train-memo
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start
- make evaluate-core
- openssl aes-256-cbc -K $encrypted_8857e34a5e52_key -iv $encrypted_8857e34a5e52_iv
-in travis_gcloud_auth.json.enc -out travis_gcloud_auth.json -d
- docker login -u _json_key -p "$(cat travis_gcloud_auth.json)" https://gcr.io
- docker pull gcr.io/replicated-test/rasa-demo:latest || true
script:
- docker build --build-arg GITHUB_TOKEN=${GITHUB_TOKEN} -t gcr.io/replicated-test/rasa-demo:v$TRAVIS_BUILD_NUMBER
-t gcr.io/replicated-test/rasa-demo:latest --cache-from gcr.io/replicated-test/rasa-demo:latest
.
- docker push gcr.io/replicated-test/rasa-demo:v$TRAVIS_BUILD_NUMBER
- docker push gcr.io/replicated-test/rasa-demo:latest
addons:
ssh_known_hosts:
- 35.206.176.121
- website-demo.rasa.com