From eab67874a8f77fd17fffd32c783faeb968eed9c1 Mon Sep 17 00:00:00 2001 From: Hax Date: Tue, 29 Oct 2019 18:48:17 +0100 Subject: [PATCH] Update .travis.yml --- .travis.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.travis.yml b/.travis.yml index 498561e..a3702fd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,10 +3,19 @@ jdk: - oraclejdk12 - openjdk12 +addons: + apt: + packages: + - sshpass + after_success: - wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh - chmod +x send.sh - ./send.sh success $WEBHOOK_URL + + - export SSHPASS=$SFTP_PASSWORD + - sshpass -e scp Hadder.jar $SFTP_USER@$SFTP_IP:$SFTP_DIR + - sshpass -e ssh $SFTP_USER@$SFTP_IP $SFTP_DIR/deploy.sh after_failure: - wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh - chmod +x send.sh