forked from RocketChat/docs-old
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
33 lines (33 loc) · 964 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
30
31
32
33
language: node_js
node_js: '4'
install:
- npm i -g gulp
env:
- CXX=g++-4.8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
branches:
only:
- master
before_script:
- chmod 600 .travis/deploy-key
- mv .travis/deploy-key ~/.ssh/id_rsa
- git clone https://github.com/RocketChat/Rocket.Chat.Docs.Generator.git /tmp/generator
script:
- export SRC_DIR=`pwd`
- cd /tmp/generator
- ln -s $SRC_DIR src
- npm i
- gulp build
after_success:
- cd /tmp/generator
- tar -czf package.tgz build
- scp package.tgz $DEPLOY_USER@$DEPLOY_HOST:$DEPLOY_PATH
- ssh $DEPLOY_USER@$DEPLOY_HOST $DEPLOY_PATH/deploy.sh
before_install:
- echo -e "Host $DEPLOY_HOST\n\tHostName $DEPLOY_HOST\n\tStrictHostKeyChecking no\n\tUser github\n\tIdentityFile ~/.ssh/id_rsa\n" >> ~/.ssh/config
- openssl aes-256-cbc -K $encrypted_0da79f095df9_key -iv $encrypted_0da79f095df9_iv -in .travis/deploy-key.enc -out .travis/deploy-key -d