Skip to content

Commit

Permalink
Check for git, ssh-agent and python
Browse files Browse the repository at this point in the history
  • Loading branch information
rageshkrishna committed Mar 1, 2016
1 parent 03587b8 commit dbbb714
Show file tree
Hide file tree
Showing 24 changed files with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,54 @@ readonly PROGDIR=$(readlink -m $(dirname $0))
readonly ARTIFACTS_DIR="/shippableci"
readonly SUDO=`which sudo`

check_git() {
echo "Looking for git..."
{
GIT=$(which git)
} || {
echo "Could not find git. Installing git-core..."
}

if [ -z "$GIT" ]; then
$SUDO apt-get install -y git-core
echo "Installed git-core"
else
echo "Found git at $GIT"
fi
}

check_ssh_agent() {
echo "Looking for ssh-agent"
{
SSH_AGENT=$(which ssh-agent)
} || {
echo "Could not find ssh-agent. Installing..."
}

if [ -z "$SSH_AGENT" ]; then
$SUDO apt-get install -y openssh-client
echo "Installed openssh-client"
else
echo "Found ssh-agent at $SSH_AGENT"
fi
}

check_python() {
echo "Looking for python..."
{
PYTHON=$(which python)
} || {
echo "Could not find python. Installing..."
}

if [ -z "$PYTHON" ]; then
$SUDO apt-get install -y python
echo "Installed python"
else
echo "Found python at $PYTHON"
fi
}

update_dir() {
cd $PROGDIR
}
Expand Down Expand Up @@ -37,6 +85,9 @@ run_build() {
}

main() {
check_git
check_ssh_agent
check_python
update_dir
update_perms
update_path
Expand Down
Binary file modified dist/main/_codecs_cn.x86_64-linux-gnu.so
Binary file not shown.
Binary file modified dist/main/_codecs_hk.x86_64-linux-gnu.so
Binary file not shown.
Binary file modified dist/main/_codecs_iso2022.x86_64-linux-gnu.so
Binary file not shown.
Binary file modified dist/main/_codecs_jp.x86_64-linux-gnu.so
Binary file not shown.
Binary file modified dist/main/_codecs_kr.x86_64-linux-gnu.so
Binary file not shown.
Binary file modified dist/main/_codecs_tw.x86_64-linux-gnu.so
Binary file not shown.
Binary file modified dist/main/_ctypes.x86_64-linux-gnu.so
Binary file not shown.
Binary file modified dist/main/_hashlib.x86_64-linux-gnu.so
Binary file not shown.
Binary file modified dist/main/_json.x86_64-linux-gnu.so
Binary file not shown.
Binary file modified dist/main/_multibytecodec.x86_64-linux-gnu.so
Binary file not shown.
Binary file modified dist/main/_ssl.x86_64-linux-gnu.so
Binary file not shown.
Binary file modified dist/main/bz2.x86_64-linux-gnu.so
Binary file not shown.
Binary file modified dist/main/datetime.x86_64-linux-gnu.so
Binary file not shown.
Binary file modified dist/main/libcrypto.so.1.0.0
Binary file not shown.
Binary file modified dist/main/libexpat.so.1
Binary file not shown.
Binary file modified dist/main/libffi.so.6
Binary file not shown.
Binary file modified dist/main/libpython2.7.so.1.0
Binary file not shown.
Binary file modified dist/main/libssl.so.1.0.0
Binary file not shown.
Binary file modified dist/main/main
Binary file not shown.
Binary file modified dist/main/pyexpat.x86_64-linux-gnu.so
Binary file not shown.
Binary file modified dist/main/readline.x86_64-linux-gnu.so
Binary file not shown.
Binary file modified dist/main/resource.x86_64-linux-gnu.so
Binary file not shown.
Binary file modified dist/main/termios.x86_64-linux-gnu.so
Binary file not shown.

0 comments on commit dbbb714

Please sign in to comment.