-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
22 lines (22 loc) · 1.07 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
language: go
go:
- master
before_install:
- openssl aes-256-cbc -K $encrypted_a4aae917fec2_key -iv $encrypted_a4aae917fec2_iv
-in secretkey.enc -out secretkey -d
- mkdir -p ~/.ssh/
- cp secretkey ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
- echo -e "Host $server\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
env:
global:
- secure: jjP6dO8JSkKMykYPwUdEH7FsbBGlHb1QHzoifOhHhkPr509ahvkQAfvWgKfnJPhe4ZvkLD+nmuoAErtTS5+/ACFnWRtMedd6L8tJyMk4Z/Y47YWgwQSLnOSJY1XgiW4E6rxxYeGXqcXfX488vQkJOQM/PeXZdyF3xUOrvTpGyGI=
- secure: aG1i6kTVYj76TXOr9CpGb7bBjEGltbILqQjR59eNm++Z7Neq7ina5awevU86KrDz0QtEz373osKk4k6b4tTRI38/KoT7avnw+wXgwxP4YcCQ8np/jMGgex2U6yNW3MDu1uszTGzS/cQOMVr1qmqb5rRGoIUoXO/2qh4mwk3fJIQ=
script:
- cd
- go build github.com/scritch007/shareit/ShareMinator
after_success:
- ssh $login@$server mv /home/$login/ShareMinator /home/$login/ShareMinator.save
- ssh $login@$server pkill ShareMinator
- scp ShareMinator $login@$server:/home/$login/ShareMinator
- ssh -n -f $login@$server exec "sh -c 'nohup ./ShareMinator -c=./shareme.config > /dev/null 2>&1 &'"