From c85ca7b1760695787f4977a05f2121b3e6fbe684 Mon Sep 17 00:00:00 2001 From: Austen Date: Sun, 27 Apr 2014 19:19:17 -0400 Subject: [PATCH] Added gitlab tester script for linux --- gitlabTest.sh | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 gitlabTest.sh diff --git a/gitlabTest.sh b/gitlabTest.sh new file mode 100755 index 0000000..e386748 --- /dev/null +++ b/gitlabTest.sh @@ -0,0 +1,28 @@ +#!/bin/bash +green='\e[0;32m' +close='\e[0m' +mkdir -p /tmp/tests +echo -e "${green}Making test directories${close}" +cd /tmp/tests +mkdir a +mkdir b +cd /tmp/tests/a +git init +git remote add origin git@76.182.74.61:hitchhikers/MyRobot.git +echo -e "${green}SSH cloning${close}" +git pull origin master +echo -e "${green}" +ls +echo -e "${close}" +cd /tmp/tests/b +git init +git remote add origin https://76.182.74.61/gitlab/hitchhikers/MyRobot.git +git config http.sslVerify false +echo -e "${green}HTTPS cloning${close}" +git pull origin master +echo -e "${green}" +ls +echo -e "${close}" +echo -e "${green}Removing test directories${close}" +rm -rf tests +echo -e "${green}Done testing!${close}"