Skip to content

Commit

Permalink
ci: Travis CI #1
Browse files Browse the repository at this point in the history
  • Loading branch information
PlushBeaver committed Jun 2, 2019
1 parent 6aef171 commit 5039681
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 10 deletions.
28 changes: 22 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
deploy:
provider: script
script: bash deploy.bash
on:
tags: true
all_branches: true
branches:
only:
- master

language: shell

addons:
ssh_known_hosts:
- uii.mpei.ru

install:
- sudo apt-get -y install openssh-client

before_script:
- openssl aes-256-cbc -d -K $encrypted_dcd021a3c124_key -iv $encrypted_dcd021a3c124_iv -in .travis/deploy.key -out /tmp/deploy.key
- chmod 600 /tmp/deploy.key
- eval "$(ssh-agent -s)"
- ssh-add /tmp/deploy.key

script:
- cd study
- rsync --archive --update --delete --verbose . [email protected]:htdocs/study
Binary file added .travis/deploy.key
Binary file not shown.
4 changes: 0 additions & 4 deletions deploy.bash

This file was deleted.

0 comments on commit 5039681

Please sign in to comment.