summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2019-10-17 12:26:08 +0100
committerNick Thomas <nick@gitlab.com>2019-10-18 11:47:25 +0100
commitede41ee451dd0aa6d0ecd958c7fadbdb3b63f3e4 (patch)
tree0f80f7394231d39970f23a08ba9ba2ce7051e22c /bin
parentff46222a3a75467d6b22c94abb09a3bb6be60623 (diff)
downloadgitlab-shell-ede41ee451dd0aa6d0ecd958c7fadbdb3b63f3e4.tar.gz
Simplify building and testing the Go components
Diffstat (limited to 'bin')
-rwxr-xr-xbin/compile20
-rwxr-xr-xbin/install1
2 files changed, 0 insertions, 21 deletions
diff --git a/bin/compile b/bin/compile
deleted file mode 100755
index e6eacca..0000000
--- a/bin/compile
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/usr/bin/env ruby
-
-require 'fileutils'
-
-require_relative '../support/go_build'
-include GoBuild
-
-BUILD_BIN_GLOB = File.join(BUILD_DIR, 'bin', '*')
-ROOT_BIN = File.join(ROOT_PATH, 'bin')
-
-def main
- ensure_build_dir_exists
-
- run!(GO_ENV, %W[go install ./cmd/...], chdir: GO_DIR)
- executables = Dir[BUILD_BIN_GLOB]
- FileUtils.chmod(0755, executables)
- FileUtils.cp(executables, ROOT_BIN)
-end
-
-main
diff --git a/bin/install b/bin/install
index d6e5357..323e758 100755
--- a/bin/install
+++ b/bin/install
@@ -1,7 +1,6 @@
#!/usr/bin/env ruby
# Load ROOT_PATH and access the minimum necessary config file
-require_relative '../support/go_build'
require_relative '../support/gitlab_config'
config = GitlabConfig.new