Skip to content
This repository has been archived by the owner on May 30, 2020. It is now read-only.

Commit

Permalink
Add: .travis
Browse files Browse the repository at this point in the history
  • Loading branch information
snowdream committed Jun 17, 2016
1 parent abdd336 commit 2826f88
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .travis/deploy.sh
Expand Up @@ -12,6 +12,7 @@ chmod 600 ~/.ssh/id_rsa
# Start SSH agent in the background
eval "$(ssh-agent -s)"

echo "1"
# Add the private key to the ssh-agent
# Enter passphrase automatically
expect >/dev/null 2>&1 << EOF
Expand All @@ -28,14 +29,17 @@ expect >/dev/null 2>&1 << EOF
eof { exit 0 }
}
EOF
echo "2"

# Copy SSH config and known_hosts
cp .travis/ssh_config ~/.ssh/config
# cp .travis/ssh_known_hosts ~/.ssh/known_hosts
echo "3"

# Set Git config
git config --global user.name 'snowdream'
git config --global user.email yanghui1986527@gmail.com
echo "4"

# Deploy with Hexo
# Hide any sensitive credential data that might otherwise be exposed
Expand All @@ -54,3 +58,4 @@ expect >/dev/null 2>&1 << EOF
eof { exit 0 }
}
EOF
echo "5"

0 comments on commit 2826f88

Please sign in to comment.