forked from WeaveTeam/WeaveJS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (43 loc) · 1.62 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
notifications:
email: false
slack:
rooms:
secure: XZXu/nKH0fgld3Nnf2KIXHMzXUUDZpo+lsmyf0KI7cIkxBuy21yQuZvYa2bBW/34K2Z7lxck+l1wl8+jiAXkxhkM16M+ZJMgmBG5+3v7vCRAVhA9KF8m51Mm2loEvtfnNU4Uyr/sy3dOlIZcdu/0jNF9rD0AlGuA5SxjumOVLhB3fDiIrZfwe/9baG03H2YyIZWlh+tNlHWo2sjYRcblGcIjwl7nILAqh/0oWGmK7ao9TTJhQxVJmkNYWyocnUFp4hdKlNnYahK2zKwT4OAZ157gRMRia+lPdBndAYW0o57DPqPcp5+CDJfl+3zlbII9RVkyIqZC/pszT+f6LcaQzXIkjVmZ52Cv3lZVlRx3QVzyhH5qv0TIMsC7p+s89idLdoSX6nOmF0rie99bWCtRzzX0q7Acv/3joqFpyfMNzdpUWEPRB43vBo0yz2NM011vwZRdAlcErKBUy4oMqPsbgRu+hU80NHE4sX7Y2+iBk6CICT5vdV+xgklFeLeEiLCk1ixlQ51rFGomocNFIJJBNUsqLM4BY52SMxuJtrFQEo/lvHD23OKrJ2nx+bLYHbT3JjMyqPgfcD0wj60Y3iDK/xCS1UivYGF63lVM2pLempKZWNln/9kP77srXeRQUTGsXfE6c1Fc+EczT9m2H4nUgoPwtOJyLGW2TKIPA2S0ex4=
on_success: never
on_failure: always
language: node_js
node_js:
- '7'
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- sshpass
before_install:
- mkdir -p dist
- yes | npm install
- npm install
- npm link
- pushd WeaveApp
- npm install
- npm link weavejs
- popd
- pushd node_modules/flexjs/js/bin/
- chmod a+x *
- popd
install:
- pushd WeaveApp
- npm run compile-libs
- popd
- npm run compile
after_success:
- pushd WeaveApp/dist/ && tar -zcvf ../../$TRAVIS_BRANCH.tgz * && popd
- export SSHPASS=$DEPLOY_PASS
- sshpass -e scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no $TRAVIS_BRANCH.tgz
$DEPLOY_USER@$DEPLOY_HOST:$DEPLOY_PATH
- sshpass -e ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no $DEPLOY_USER@$DEPLOY_HOST
"sudo $DEPLOY_PATH/deploy.sh $TRAVIS_BRANCH $TRAVIS_EVENT_TYPE"
caches:
directories:
- node_modules/flexjs