language: go
sudo: false

addons:
  ssh_known_hosts: beevee.ru

go:
- 1.7

before_install:
- go get github.com/mattn/goveralls
- go get github.com/kardianos/govendor
- govendor sync

script:
- goveralls
- cd cmd/konfurbot && go build

before_deploy:
- openssl aes-256-cbc -K $encrypted_f10f3c59f737_key -iv $encrypted_f10f3c59f737_iv
  -in deploy_rsa.enc -out /tmp/deploy_rsa -d
- eval "$(ssh-agent -s)"
- chmod 600 /tmp/deploy_rsa
- ssh-add /tmp/deploy_rsa

deploy:
- provider: script
  skip_cleanup: true
  script:
  - rsync --quiet $TRAVIS_BUILD_DIR/cmd/konfurbot/konfurbot deploy@beevee.ru:/opt/konfurbot/
  on:
    branch: master
- provider: script
  skip_cleanup: true
  script:
  - rsync --quiet $TRAVIS_BUILD_DIR/cmd/konfurbot/schedule.yml deploy@beevee.ru:/opt/konfurbot/
  on:
    branch: master
- provider: script
  script:
  - ssh deploy@beevee.ru 'sudo systemctl restart konfurbot'
  on:
    branch: master

language: go

addons:
  ssh_known_hosts: beevee.ru

go:
- 1.7

before_install:
- go get github.com/mattn/goveralls
- go get github.com/kardianos/govendor
- govendor sync

script:
- goveralls
- cd cmd/konfurbot && go build

before_deploy:
- openssl aes-256-cbc -K $encrypted_f10f3c59f737_key -iv $encrypted_f10f3c59f737_iv
  -in deploy_rsa.enc -out /tmp/deploy_rsa -d
- eval "$(ssh-agent -s)"
- chmod 600 /tmp/deploy_rsa
- ssh-add /tmp/deploy_rsa

deploy:
- provider: script
  skip_cleanup: true
  script:
  - rsync --quiet $TRAVIS_BUILD_DIR/cmd/konfurbot/konfurbot deploy@beevee.ru:/opt/konfurbot/
  on:
    branch: master
- provider: script
  skip_cleanup: true
  script:
  - rsync --quiet $TRAVIS_BUILD_DIR/cmd/konfurbot/schedule.yml deploy@beevee.ru:/opt/konfurbot/
  on:
    branch: master
- provider: script
  script:
  - ssh deploy@beevee.ru 'sudo systemctl restart konfurbot'
  on:
    branch: master

Remove unnecessary string from Travis CI config
Remove unnecessary string from Travis CI config
