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
1ee0fda5
Commit
1ee0fda5
authored
Mar 04, 2016
by
Josh Haberman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use a local Maven repository to avoid network fetches during tests.
parent
2f3f1de1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
0 deletions
+31
-0
Dockerfile
tools/docker/Dockerfile
+26
-0
tests.sh
tools/run_tests/tests.sh
+5
-0
No files found.
tools/docker/Dockerfile
View file @
1ee0fda5
...
...
@@ -116,7 +116,11 @@ 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"
##################
# Prepare ccache
# We do this BEFORE the Java dependency step below, so the build of protoc
# can benefit from it.
RUN
ln
-s
/usr/bin/ccache /usr/local/bin/gcc
RUN
ln
-s
/usr/bin/ccache /usr/local/bin/g++
RUN
ln
-s
/usr/bin/ccache /usr/local/bin/cc
...
...
@@ -124,5 +128,27 @@ RUN ln -s /usr/bin/ccache /usr/local/bin/c++
RUN
ln
-s
/usr/bin/ccache /usr/local/bin/clang
RUN
ln
-s
/usr/bin/ccache /usr/local/bin/clang++
##################
# Java dependencies
# This step requires compiling protoc. :(
ENV
MAVEN_REPO /var/maven_local_repository
ENV
MVN mvn --batch-mode
RUN
cd
/tmp
&&
\
git clone https://github.com/google/protobuf.git
&&
\
cd
protobuf
&&
\
./autogen.sh
&&
\
./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
# Define the default command.
CMD
["bash"]
tools/run_tests/tests.sh
View file @
1ee0fda5
...
...
@@ -104,6 +104,11 @@ use_java() {
;;
esac
if
[
"
$TRAVIS
"
!=
"true"
]
;
then
MAVEN_LOCAL_REPOSITORY
=
/var/maven_local_repository
MVN
=
"
$MVN
-e -X --offline -Dmaven.repo.local=
$MAVEN_LOCAL_REPOSITORY
"
fi
;
which java
java
-version
}
...
...
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