Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
4ddaad4f
Commit
4ddaad4f
authored
Jul 22, 2016
by
Feng Xiao
Committed by
GitHub
Jul 22, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1825 from xfxyjwf/jenkins2
Add more tests to jenkins.
parents
de5236dc
20fbb357
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
39 additions
and
23 deletions
+39
-23
.travis.yml
.travis.yml
+0
-2
Dockerfile
jenkins/docker/Dockerfile
+21
-5
pull_request_in_docker.sh
jenkins/pull_request_in_docker.sh
+3
-1
travis-test.sh
ruby/travis-test.sh
+1
-1
tests.sh
tests.sh
+14
-14
No files found.
.travis.yml
View file @
4ddaad4f
...
...
@@ -28,8 +28,6 @@ env:
-
CONFIG=objectivec_cocoapods_integration
-
CONFIG=python
-
CONFIG=python_cpp
-
CONFIG=ruby19
-
CONFIG=ruby20
-
CONFIG=ruby21
-
CONFIG=ruby22
-
CONFIG=jruby
...
...
jenkins/docker/Dockerfile
View file @
4ddaad4f
...
...
@@ -87,7 +87,6 @@ RUN wget www.nuget.org/NuGet.exe -O /usr/local/bin/nuget.exe
RUN
pip
install
pip
--upgrade
RUN
pip
install
virtualenv tox yattag
##################
# Ruby dependencies
...
...
@@ -95,12 +94,12 @@ RUN pip install virtualenv tox yattag
RUN
gpg
--keyserver
hkp://keys.gnupg.net
--recv-keys
409B6B1796C275462A1703113804BB82D39DC0E3
RUN
\c
url
-sSL
https://get.rvm.io | bash
-s
stable
# Install Ruby 2.1
# Install Ruby 2.1
, Ruby 2.2 and JRuby 1.7
RUN
/bin/bash
-l
-c
"rvm install ruby-2.1"
RUN
/bin/bash
-l
-c
"rvm use --default ruby-2.1"
RUN
/bin/bash
-l
-c
"rvm install ruby-2.2"
RUN
/bin/bash
-l
-c
"rvm install jruby-1.7"
RUN
/bin/bash
-l
-c
"echo 'gem: --no-ri --no-rdoc' > ~/.gemrc"
RUN
/bin/bash
-l
-c
"echo 'export PATH=/usr/local/rvm/bin:
$PATH
' >> ~/.bashrc"
RUN
/bin/bash
-l
-c
"echo 'rvm --default use ruby-2.1' >> ~/.bashrc"
RUN
/bin/bash
-l
-c
"gem install bundler --no-ri --no-rdoc"
##################
...
...
@@ -118,11 +117,28 @@ RUN cd /tmp && \
./configure
&&
\
make
-j6
&&
\
cd
java
&&
\
$MVN
install
dependency:go-offline
-Dmaven
.repo.local
=
$MAVEN_REPO
-P
lite
&&
\
$MVN
install
dependency:go-offline
-Dmaven
.repo.local
=
$MAVEN_REPO
&&
\
cd
../javanano
&&
\
$MVN
install
dependency:go-offline
-Dmaven
.repo.local
=
$MAVEN_REPO
##################
# Go dependencies.
RUN
apt-get
install
-y
\
# -- For go --
\
golang
##################
# Javascript dependencies.
Run
apt-get
install
-y
\
# -- For javascript --
\
npm
# On Debian/Ubuntu, nodejs binary is named 'nodejs' because the name 'node'
# is taken by another legacy binary. We don't have that legacy binary and
# npm expects the binary to be named 'node', so we just create a symbol
# link here.
RUN
ln
-s
`
which nodejs
`
/usr/bin/node
##################
# Prepare ccache
...
...
jenkins/pull_request_in_docker.sh
View file @
4ddaad4f
...
...
@@ -55,7 +55,9 @@ parallel --results $LOG_OUTPUT_DIR --joblog $OUTPUT_DIR/joblog $TEST_SCRIPT :::
javanano_oracle7
\
python
\
python_cpp
\
ruby21
\
ruby_all
\
javascript
\
golang
\
||
true
# Process test results even if tests fail.
cat
$OUTPUT_DIR
/joblog
...
...
ruby/travis-test.sh
View file @
4ddaad4f
...
...
@@ -5,7 +5,7 @@ set -e
test_version
()
{
version
=
$1
if
[
"
$version
"
==
"jruby"
]
;
then
if
[
"
$version
"
==
"jruby
-1.7
"
]
;
then
# No conformance tests yet -- JRuby is too broken to run them.
bash
--login
-c
\
"rvm install
$version
&& rvm use
$version
&&
\
...
...
tests.sh
View file @
4ddaad4f
...
...
@@ -113,10 +113,12 @@ build_golang() {
export
PATH
=
"
`
pwd
`
/src:
$PATH
"
# Install Go and the Go protobuf compiler plugin.
sudo
apt-get update
-qq
sudo
apt-get
install
-qq
golang
on_travis
sudo
apt-get update
-qq
on_travis
sudo
apt-get
install
-qq
golang
export
GOPATH
=
"
$HOME
/gocode"
mkdir
-p
"
$GOPATH
/src/github.com/google"
rm
-f
"
$GOPATH
/src/github.com/google/protobuf"
ln
-s
"
`
pwd
`
"
"
$GOPATH
/src/github.com/google/protobuf"
export
PATH
=
"
$GOPATH
/bin:
$PATH
"
go get github.com/golang/protobuf/protoc-gen-go
...
...
@@ -296,14 +298,6 @@ build_python_cpp() {
cd
..
}
build_ruby19
()
{
internal_build_cpp
# For conformance tests.
cd
ruby
&&
bash travis-test.sh ruby-1.9
&&
cd
..
}
build_ruby20
()
{
internal_build_cpp
# For conformance tests.
cd
ruby
&&
bash travis-test.sh ruby-2.0
&&
cd
..
}
build_ruby21
()
{
internal_build_cpp
# For conformance tests.
cd
ruby
&&
bash travis-test.sh ruby-2.1
&&
cd
..
...
...
@@ -314,7 +308,14 @@ build_ruby22() {
}
build_jruby
()
{
internal_build_cpp
# For conformance tests.
cd
ruby
&&
bash travis-test.sh jruby
&&
cd
..
# TODO(xiaofeng): Upgrade to jruby-9.x. There are some broken jests to be
# fixed.
cd
ruby
&&
bash travis-test.sh jruby-1.7
&&
cd
..
}
build_ruby_all
()
{
build_ruby21
build_ruby22
build_jruby
}
build_javascript
()
{
...
...
@@ -348,11 +349,10 @@ Usage: $0 { cpp |
objectivec_cocoapods_integration |
python |
python_cpp |
ruby19 |
ruby20 |
ruby21 |
ruby22 |
jruby }
jruby |
ruby_all)
"
exit
1
fi
...
...
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