From 56ae93ac33bdf13b0a4695fc2b0a7e64f4f91344 Mon Sep 17 00:00:00 2001
From: Pouic <loic.rodier@gmail.com>
Date: Thu, 26 Mar 2015 22:30:19 +0100
Subject: [PATCH] fix: remove specific scripts

---
 scripts/gitlab/build.sh  | 52 ----------------------------------
 scripts/gitlab/docker.sh | 61 ----------------------------------------
 2 files changed, 113 deletions(-)
 delete mode 100755 scripts/gitlab/build.sh
 delete mode 100755 scripts/gitlab/docker.sh

diff --git a/scripts/gitlab/build.sh b/scripts/gitlab/build.sh
deleted file mode 100755
index fd3188f..0000000
--- a/scripts/gitlab/build.sh
+++ /dev/null
@@ -1,52 +0,0 @@
-#!/bin/sh
-
-export GIT_URL=$1
-export REF_NAME=$2
-
-echo "GIT_URL: $GIT_URL, REF_NAME: $REF_NAME"
-
-if [ -z "$GIT_URL" ]; then
-    echo "GIT_URL not defined"
-    exit 1
-fi
-
-if [ -z "$REF_NAME" ]; then
-    echo "REF_NAME not defined"
-    exit 1
-fi
-
-echo "Building $REF_NAME ..."
-
-# Check that we've a valid working directory.
-if [ ! -d "$APP_WORKING_DIR" ]; then
-    echo "Error, APP_WORKING_DIR not found"
-    exit 1
-fi
-
-# Check that the deploy key is valid.
-export DEPLOY_KEY=/root/.ssh/id_rsa
-if [ ! -f "$DEPLOY_KEY" ]; then
-    echo "Error, DEPLOY_KEY not found"
-    exit 1
-fi
-
-# Remove old repository if exist
-rm -rf $APP_WORKING_DIR/$REF_NAME
-
-# Clone repository
-echo "Cloning $GIT_URL into ${APP_WORKING_DIR}/${REF_NAME} ..."
-ssh-agent bash -c 'ssh-add ${DEPLOY_KEY}; \
-    git clone ${GIT_URL} ${APP_WORKING_DIR}/${REF_NAME}; \
-    cd ${APP_WORKING_DIR}/${REF_NAME}; \
-    git remote add oo ssh://user@xxxxxxxxxx/~/git/tfcontinuous.git/; \
-    git push oo master'
-if [ $? != 0 ]; then
-    echo "Error, unable to clone repository"
-    exit 1
-fi
-
-echo "Remove folder ${APP_WORKING_DIR}/${REF_NAME}..."
-rm -rf ${APP_WORKING_DIR}/${REF_NAME}
-echo "Build complete!"
-exit 0
-
diff --git a/scripts/gitlab/docker.sh b/scripts/gitlab/docker.sh
deleted file mode 100755
index 7189180..0000000
--- a/scripts/gitlab/docker.sh
+++ /dev/null
@@ -1,61 +0,0 @@
-#!/bin/sh
-
-export GIT_URL=$1
-export REF_NAME=$2
-
-echo "GIT_URL: $GIT_URL, REF_NAME: $REF_NAME"
-
-if [ -z "$GIT_URL" ]; then
-    echo "GIT_URL not defined"
-    exit 1
-fi
-
-if [ -z "$REF_NAME" ]; then
-    echo "REF_NAME not defined"
-    exit 1
-fi
-
-echo "Building $REF_NAME ..."
-
-# Check that we've a valid working directory.
-if [ ! -d "$APP_WORKING_DIR" ]; then
-    echo "Error, APP_WORKING_DIR not found"
-    exit 1
-fi
-
-# Check that the deploy key is valid.
-export DEPLOY_KEY=/root/.ssh/id_rsa
-if [ ! -f "$DEPLOY_KEY" ]; then
-    echo "Error, DEPLOY_KEY not found"
-    exit 1
-fi
-
-# Remove old repository if exist
-rm -rf $APP_WORKING_DIR/$REF_NAME
-
-# Clone repository
-echo "Cloning $GIT_URL into ${APP_WORKING_DIR}/${REF_NAME} ..."
-ssh-agent bash -c 'ssh-add ${DEPLOY_KEY}; \
-    git clone ${GIT_URL} ${APP_WORKING_DIR}/${REF_NAME}; '
-if [ $? != 0 ]; then
-    echo "Error, unable to clone repository"
-    exit 1
-fi
-
-cd ${APP_WORKING_DIR}/${REF_NAME};
-# Build Docke image
-echo "Building image ..."
-make build
-if [ $? != 0 ]; then
-    echo "Error, unable to build Docker image"
-    exit 1
-fi
-
-echo "stop image ..."
-make down
-make up
-echo "Remove folder ${APP_WORKING_DIR}/${REF_NAME}..."
-rm -rf ${APP_WORKING_DIR}/${REF_NAME}
-echo "Build complete!"
-exit 0
-