From 8390e68ebc98c4d4615e0a94baa0f6d56bd6261b Mon Sep 17 00:00:00 2001
From: Clark Coleman <clc@zephyr-software.com>
Date: Tue, 19 Mar 2019 13:40:51 -0400
Subject: [PATCH] Start adding CICD directories and files.

---
 cicd_testing/do-build.sh | 21 +++++++++++++++++++++
 cicd_testing/do-clean.sh | 20 ++++++++++++++++++++
 2 files changed, 41 insertions(+)
 create mode 100755 cicd_testing/do-build.sh
 create mode 100755 cicd_testing/do-clean.sh

diff --git a/cicd_testing/do-build.sh b/cicd_testing/do-build.sh
new file mode 100755
index 00000000..2834f534
--- /dev/null
+++ b/cicd_testing/do-build.sh
@@ -0,0 +1,21 @@
+#!/bin/bash
+set -e
+set -x
+
+
+# update submodules
+git submodule sync --recursive
+git submodule update --recursive --init
+# gather info for debugging later, probably not necessary 
+pwd
+hostname
+whoami
+env|grep CICD
+
+time rsync -a --exclude='.git'  $CICD_TO_TEST_DIR/ /tmp/stars_test
+cd /tmp/stars_test
+# source set_env_vars
+# sudo ./get-peasoup-packages.sh all
+# ./build-all.sh 
+# bash -x ./postgres_setup.sh
+
diff --git a/cicd_testing/do-clean.sh b/cicd_testing/do-clean.sh
new file mode 100755
index 00000000..b279cdf4
--- /dev/null
+++ b/cicd_testing/do-clean.sh
@@ -0,0 +1,20 @@
+#!/bin/bash
+set -e
+set -x
+
+main()
+{
+
+        if [[ $CICD_NIGHTLY == 1 ]] ; then
+		# gather info for debugging later, probably not necessary 
+		pwd
+		hostname
+		whoami
+		env|grep CICD
+
+		rm -rf /tmp/stars_test
+	fi
+}
+
+main "$@"
+
-- 
GitLab