Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-shell
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-shell
Commits
015bf11a
Commit
015bf11a
authored
Apr 12, 2017
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better variable name
parent
0fba550d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
6 deletions
+15
-6
.gitlab-ci.yml
.gitlab-ci.yml
+10
-1
bin/compile
bin/compile
+5
-5
No files found.
.gitlab-ci.yml
View file @
015bf11a
image
:
"
ruby:2.3"
image
:
"
ruby:2.3"
before_script
:
before_script
:
-
export PATH=~/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
-
export PATH=~/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
:/usr/local/go/bin
-
apt update
-
apt update
-
apt install rsync -y
-
apt install rsync -y
-
gem install --bindir /usr/local/bin bundler
-
gem install --bindir /usr/local/bin bundler
...
@@ -43,3 +43,12 @@ rspec:ruby2.1:
...
@@ -43,3 +43,12 @@ rspec:ruby2.1:
-
ruby
-
ruby
except
:
except
:
-
tags
-
tags
compile
:
# Image taken from gitlab-ce@59f81b4ff8
image
:
"
dev.gitlab.org:5005/gitlab/gitlab-build-images:ruby-2.3.3-golang-1.8-git-2.7-phantomjs-2.1-node-7.1"
script
:
-
go version
-
which go
-
bin/compile
bin/compile
View file @
015bf11a
...
@@ -6,20 +6,20 @@ require 'fileutils'
...
@@ -6,20 +6,20 @@ require 'fileutils'
require_relative
'../lib/gitlab_init'
require_relative
'../lib/gitlab_init'
GO_DIR
=
'go'
GO_DIR
=
'go'
GOPATH
=
File
.
join
(
ROOT_PATH
,
'go_build'
)
BUILD_DIR
=
File
.
join
(
ROOT_PATH
,
'go_build'
)
GO_PACKAGE
=
File
.
join
(
'gitlab.com/gitlab-org/gitlab-shell'
,
GO_DIR
)
GO_PACKAGE
=
File
.
join
(
'gitlab.com/gitlab-org/gitlab-shell'
,
GO_DIR
)
def
main
def
main
FileUtils
.
rm_rf
(
GOPATH
)
FileUtils
.
rm_rf
(
BUILD_DIR
)
build_source_dir
=
File
.
join
(
GOPATH
,
'src'
,
GO_PACKAGE
)
build_source_dir
=
File
.
join
(
BUILD_DIR
,
'src'
,
GO_PACKAGE
)
FileUtils
.
mkdir_p
(
build_source_dir
)
FileUtils
.
mkdir_p
(
build_source_dir
)
FileUtils
.
cp_r
(
File
.
join
(
ROOT_PATH
,
GO_DIR
,
'.'
),
build_source_dir
)
FileUtils
.
cp_r
(
File
.
join
(
ROOT_PATH
,
GO_DIR
,
'.'
),
build_source_dir
)
env
=
{
env
=
{
'GOPATH'
=>
GOPATH
,
'GOPATH'
=>
BUILD_DIR
,
'GO15VENDOREXPERIMENT'
=>
'1'
,
'GO15VENDOREXPERIMENT'
=>
'1'
,
}
}
run!
(
env
,
%W[go install
#{
GO_PACKAGE
}
/cmd/...]
)
run!
(
env
,
%W[go install
#{
GO_PACKAGE
}
/cmd/...]
)
executables
=
Dir
[
File
.
join
(
GOPATH
,
'bin'
,
'*'
)]
executables
=
Dir
[
File
.
join
(
BUILD_DIR
,
'bin'
,
'*'
)]
FileUtils
.
chmod
(
0755
,
executables
)
FileUtils
.
chmod
(
0755
,
executables
)
FileUtils
.
cp
(
executables
,
File
.
join
(
ROOT_PATH
,
'bin'
))
FileUtils
.
cp
(
executables
,
File
.
join
(
ROOT_PATH
,
'bin'
))
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment