Skip to content

Commit

Permalink
Added new travis conf
Browse files Browse the repository at this point in the history
  • Loading branch information
IljaSamoilov committed Sep 3, 2020
1 parent 6ab481a commit 20c897f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,25 @@
addons:
ssh_known_hosts:
- ituk.ee
apt:
packages:
- rsync
- sshpass
- rsync
- sshpass
sudo: true
dist: trusty
node_js: "stable"
install: npm install -g bower [email protected] && npm install --save-dev bower [email protected] gulp-jade gulp-less gulp-plumber gulp-sourcemaps gulp-uglify gulp-concat gulp-watch event-stream && bower install
node_js: stable
before_install:
- openssl aes-256-cbc -K $encrypted_db2095f63ba3_key -iv $encrypted_db2095f63ba3_iv
-in deploy_rsa.enc -out deploy_rsa -d
- eval "$(ssh-agent -s)"
- chmod 600 deploy_rsa
- ssh-add deploy_rsa
install: npm install -g bower [email protected] && npm install --save-dev bower [email protected]
gulp-jade gulp-less gulp-plumber gulp-sourcemaps gulp-uglify gulp-concat gulp-watch
event-stream && bower install
branches:
only:
- master
- master
script: gulp compile
after_success:
- test $TRAVIS_BRANCH = "master" && rsync -chavzP --rsh="sshpass -p $SSH_PASSWORD ssh -o StrictHostKeyChecking=no -l $SSH_USERNAME" build/* [email protected]:/var/liitu/build
- rsync -chavzP --rsh="ssh -l $SSH_USERNAME" build/* [email protected]:/var/liitu/build
Binary file added deploy_rsa.enc
Binary file not shown.

0 comments on commit 20c897f

Please sign in to comment.