-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.travis.yml
31 lines (31 loc) · 870 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
language: node_js
node_js:
- '4.0'
before_script:
- npm install -g bower
- npm install -g gulp
- bower install
script: gulp
cache:
directories:
- bower_components
- node_modules
before_deploy:
- gulp zip
deploy:
provider: releases
api_key: "$GITHUB_ACCESS_TOKEN"
file_glob: true
file: dist/chrome-sipml5-*.zip
on:
repo: tsbarnes/chrome-sipml5
tags: true
after_success:
- gulp zip
- echo -e "Host $DEPLOYMENT_SSH_SERVER\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
- openssl aes-256-cbc -K $encrypted_79ddc68575c3_key -iv $encrypted_79ddc68575c3_iv
-in .travis.key.enc -out .travis.key -d
- chmod 600 .travis.key
- mv .travis.key ~/.ssh/id_rsa
- ssh $DEPLOYMENT_SSH_USER@$DEPLOYMENT_SSH_SERVER -- mkdir -p $TRAVIS_BUILD_NUMBER
- scp $TRAVIS_BUILD_DIR/dist/chrome-sipml5-*.zip $DEPLOYMENT_SSH_USER@$DEPLOYMENT_SSH_SERVER:$TRAVIS_BUILD_NUMBER/