Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
17bb3ec9
Commit
17bb3ec9
authored
9 years ago
by
Stanley Cheung
Browse files
Options
Downloads
Patches
Plain Diff
support macos in jenkins run_distributions script
parent
d82d0b29
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/jenkins/run_distribution.sh
+57
-15
57 additions, 15 deletions
tools/jenkins/run_distribution.sh
with
57 additions
and
15 deletions
tools/jenkins/run_distribution.sh
+
57
−
15
View file @
17bb3ec9
...
...
@@ -32,24 +32,66 @@
# linuxbrew installation of a selected language
set
-ex
sha1
=
$(
sha1sum
tools/jenkins/grpc_linuxbrew/Dockerfile |
cut
-f1
-d
\
)
DOCKER_IMAGE_NAME
=
grpc_linuxbrew_
$sha1
if
[
"
$platform
"
==
"linux"
]
;
then
docker build
-t
$DOCKER_IMAGE_NAME
tools/jenkins/grpc_linuxbrew
if
[
"
$dist_channel
"
==
"homebrew"
]
;
then
supported
=
"python nodejs ruby php"
sha1
=
$(
sha1sum
tools/jenkins/grpc_linuxbrew/Dockerfile |
cut
-f1
-d
\
)
DOCKER_IMAGE_NAME
=
grpc_linuxbrew_
$sha1
docker build
-t
$DOCKER_IMAGE_NAME
tools/jenkins/grpc_linuxbrew
supported
=
"python nodejs ruby php"
if
[
"
$language
"
==
"core"
]
;
then
command
=
"curl -fsSL https://goo.gl/getgrpc | bash -"
elif
[[
"
$supported
"
=
~
"
$language
"
]]
;
then
command
=
"curl -fsSL https://goo.gl/getgrpc | bash -s
$language
"
else
echo
"unsupported language
$language
"
exit
1
fi
docker run
$DOCKER_IMAGE_NAME
bash
-l
\
-c
"nvm use 0.12;
\
npm set unsafe-perm true;
\
rvm use ruby-2.1;
\
$command
"
else
echo
"Unsupported
$platform
dist_channel
$dist_channel
"
exit
1
fi
elif
[
"
$platform
"
==
"macos"
]
;
then
if
[
"
$dist_channel
"
==
"homebrew"
]
;
then
which brew
# TODO: for debug, can be removed later
brew list
-l
rm
-rf
/tmp/homebrew-test
mkdir
-p
/tmp/homebrew-test
git clone https://github.com/Homebrew/homebrew.git /tmp/homebrew-test
cd
/tmp/homebrew-test
# TODO: Uncomment these when the general structure of the script is verified
# PATH=/tmp/homebrew-test/bin:$PATH brew tap homebrew/dupes
# PATH=/tmp/homebrew-test/bin:$PATH brew install zlib
# PATH=/tmp/homebrew-test/bin:$PATH brew install openssl
# PATH=/tmp/homebrew-test/bin:$PATH brew tap grpc/grpc
# PATH=/tmp/homebrew-test/bin:$PATH brew install --without-python google-protobuf
# PATH=/tmp/homebrew-test/bin:$PATH brew install grpc
PATH
=
/tmp/homebrew-test/bin:
$PATH
brew list
-l
brew list
-l
cd
~/
rm
-rf
/tmp/homebrew-test
echo
$PATH
# TODO: for debug, can be removed later
brew list
-l
# TODO: for debug, can be removed later
else
echo
"Unsupported
$platform
dist_channel
$dist_channel
"
exit
1
fi
if
[
"
$language
"
==
"core"
]
;
then
command
=
"curl -fsSL https://goo.gl/getgrpc | bash -"
elif
[[
"
$supported
"
=
~
"
$language
"
]]
;
then
command
=
"curl -fsSL https://goo.gl/getgrpc | bash -s
$language
"
else
echo
"unsupported la
nguage
$la
nguage
"
echo
"unsupported
p
la
tform
$
p
la
tform
"
exit
1
fi
docker run
$DOCKER_IMAGE_NAME
bash
-l
\
-c
"nvm use 0.12;
\
npm set unsafe-perm true;
\
rvm use ruby-2.1;
\
$command
"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment