Commit 4ddaad4f authored by Feng Xiao's avatar Feng Xiao Committed by GitHub

Merge pull request #1825 from xfxyjwf/jenkins2

Add more tests to jenkins.
parents de5236dc 20fbb357
...@@ -28,8 +28,6 @@ env: ...@@ -28,8 +28,6 @@ env:
- CONFIG=objectivec_cocoapods_integration - CONFIG=objectivec_cocoapods_integration
- CONFIG=python - CONFIG=python
- CONFIG=python_cpp - CONFIG=python_cpp
- CONFIG=ruby19
- CONFIG=ruby20
- CONFIG=ruby21 - CONFIG=ruby21
- CONFIG=ruby22 - CONFIG=ruby22
- CONFIG=jruby - CONFIG=jruby
......
...@@ -87,7 +87,6 @@ RUN wget www.nuget.org/NuGet.exe -O /usr/local/bin/nuget.exe ...@@ -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 pip --upgrade
RUN pip install virtualenv tox yattag RUN pip install virtualenv tox yattag
################## ##################
# Ruby dependencies # Ruby dependencies
...@@ -95,12 +94,12 @@ RUN pip install virtualenv tox yattag ...@@ -95,12 +94,12 @@ RUN pip install virtualenv tox yattag
RUN gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 RUN gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
RUN \curl -sSL https://get.rvm.io | bash -s stable RUN \curl -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 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 '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 '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" RUN /bin/bash -l -c "gem install bundler --no-ri --no-rdoc"
################## ##################
...@@ -118,11 +117,28 @@ RUN cd /tmp && \ ...@@ -118,11 +117,28 @@ RUN cd /tmp && \
./configure && \ ./configure && \
make -j6 && \ make -j6 && \
cd java && \ cd java && \
$MVN install dependency:go-offline -Dmaven.repo.local=$MAVEN_REPO -P lite && \
$MVN install dependency:go-offline -Dmaven.repo.local=$MAVEN_REPO && \ $MVN install dependency:go-offline -Dmaven.repo.local=$MAVEN_REPO && \
cd ../javanano && \ cd ../javanano && \
$MVN install dependency:go-offline -Dmaven.repo.local=$MAVEN_REPO $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 # Prepare ccache
......
...@@ -55,7 +55,9 @@ parallel --results $LOG_OUTPUT_DIR --joblog $OUTPUT_DIR/joblog $TEST_SCRIPT ::: ...@@ -55,7 +55,9 @@ parallel --results $LOG_OUTPUT_DIR --joblog $OUTPUT_DIR/joblog $TEST_SCRIPT :::
javanano_oracle7 \ javanano_oracle7 \
python \ python \
python_cpp \ python_cpp \
ruby21 \ ruby_all \
javascript \
golang \
|| true # Process test results even if tests fail. || true # Process test results even if tests fail.
cat $OUTPUT_DIR/joblog cat $OUTPUT_DIR/joblog
......
...@@ -5,7 +5,7 @@ set -e ...@@ -5,7 +5,7 @@ set -e
test_version() { test_version() {
version=$1 version=$1
if [ "$version" == "jruby" ] ; then if [ "$version" == "jruby-1.7" ] ; then
# No conformance tests yet -- JRuby is too broken to run them. # No conformance tests yet -- JRuby is too broken to run them.
bash --login -c \ bash --login -c \
"rvm install $version && rvm use $version && \ "rvm install $version && rvm use $version && \
......
...@@ -113,10 +113,12 @@ build_golang() { ...@@ -113,10 +113,12 @@ build_golang() {
export PATH="`pwd`/src:$PATH" export PATH="`pwd`/src:$PATH"
# Install Go and the Go protobuf compiler plugin. # Install Go and the Go protobuf compiler plugin.
sudo apt-get update -qq on_travis sudo apt-get update -qq
sudo apt-get install -qq golang on_travis sudo apt-get install -qq golang
export GOPATH="$HOME/gocode" export GOPATH="$HOME/gocode"
mkdir -p "$GOPATH/src/github.com/google" mkdir -p "$GOPATH/src/github.com/google"
rm -f "$GOPATH/src/github.com/google/protobuf"
ln -s "`pwd`" "$GOPATH/src/github.com/google/protobuf" ln -s "`pwd`" "$GOPATH/src/github.com/google/protobuf"
export PATH="$GOPATH/bin:$PATH" export PATH="$GOPATH/bin:$PATH"
go get github.com/golang/protobuf/protoc-gen-go go get github.com/golang/protobuf/protoc-gen-go
...@@ -296,14 +298,6 @@ build_python_cpp() { ...@@ -296,14 +298,6 @@ build_python_cpp() {
cd .. 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() { build_ruby21() {
internal_build_cpp # For conformance tests. internal_build_cpp # For conformance tests.
cd ruby && bash travis-test.sh ruby-2.1 && cd .. cd ruby && bash travis-test.sh ruby-2.1 && cd ..
...@@ -314,7 +308,14 @@ build_ruby22() { ...@@ -314,7 +308,14 @@ build_ruby22() {
} }
build_jruby() { build_jruby() {
internal_build_cpp # For conformance tests. 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() { build_javascript() {
...@@ -348,11 +349,10 @@ Usage: $0 { cpp | ...@@ -348,11 +349,10 @@ Usage: $0 { cpp |
objectivec_cocoapods_integration | objectivec_cocoapods_integration |
python | python |
python_cpp | python_cpp |
ruby19 |
ruby20 |
ruby21 | ruby21 |
ruby22 | ruby22 |
jruby } jruby |
ruby_all)
" "
exit 1 exit 1
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment