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
2ba058c6
Commit
2ba058c6
authored
Jul 21, 2016
by
Feng Xiao
Committed by
GitHub
Jul 21, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1822 from xfxyjwf/java6
Update travis tests for Java.
parents
30d8416c
ad49ed78
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
20 deletions
+3
-20
.travis.yml
.travis.yml
+0
-6
tests.sh
tests.sh
+3
-14
No files found.
.travis.yml
View file @
2ba058c6
...
...
@@ -15,10 +15,8 @@ env:
-
CONFIG=cpp
-
CONFIG=cpp_distcheck
-
CONFIG=golang
-
CONFIG=java_jdk6
-
CONFIG=java_jdk7
-
CONFIG=java_oracle7
-
CONFIG=javanano_jdk6
-
CONFIG=javanano_jdk7
-
CONFIG=javanano_oracle7
-
CONFIG=javascript
...
...
@@ -39,14 +37,10 @@ matrix:
exclude
:
# It's nontrivial to programmatically install a new JDK from the command
# line on OS X, so we rely on testing on Linux for Java code.
-
os
:
osx
env
:
CONFIG=java_jdk6
-
os
:
osx
env
:
CONFIG=java_jdk7
-
os
:
osx
env
:
CONFIG=java_oracle7
-
os
:
osx
env
:
CONFIG=javanano_jdk6
-
os
:
osx
env
:
CONFIG=javanano_jdk7
-
os
:
osx
...
...
tests.sh
View file @
2ba058c6
...
...
@@ -127,13 +127,10 @@ build_golang() {
use_java
()
{
version
=
$1
case
"
$version
"
in
jdk6
)
on_travis
sudo
apt-get
install
openjdk-6-jdk
export
PATH
=
/usr/lib/jvm/java-6-openjdk-amd64/bin:
$PATH
;;
jdk7
)
on_travis
sudo
apt-get
install
openjdk-7-jdk
export
PATH
=
/usr/lib/jvm/java-7-openjdk-amd64/bin:
$PATH
export
JAVA_HOME
=
/usr/lib/jvm/java-7-openjdk-amd64
;;
oracle7
)
if
[
"
$TRAVIS
"
==
"true"
]
;
then
...
...
@@ -144,6 +141,7 @@ use_java() {
yes
|
sudo
apt-get
install
oracle-java7-installer
fi
;
export
PATH
=
/usr/lib/jvm/java-7-oracle/bin:
$PATH
export
JAVA_HOME
=
/usr/lib/jvm/java-7-openjdk-amd64
;;
esac
...
...
@@ -154,6 +152,7 @@ use_java() {
which java
java
-version
$MVN
-version
}
# --batch-mode supresses download progress output that spams the logs.
...
...
@@ -186,10 +185,6 @@ build_javanano() {
cd
javanano
&&
$MVN
test
&&
cd
..
}
build_java_jdk6
()
{
use_java jdk6
build_java jdk6
}
build_java_jdk7
()
{
use_java jdk7
build_java_with_conformance_tests
...
...
@@ -199,10 +194,6 @@ build_java_oracle7() {
build_java oracle7
}
build_javanano_jdk6
()
{
use_java jdk6
build_javanano
}
build_javanano_jdk7
()
{
use_java jdk7
build_javanano
...
...
@@ -346,10 +337,8 @@ if [ "$#" -ne 1 ]; then
Usage:
$0
{ cpp |
cpp_distcheck |
csharp |
java_jdk6 |
java_jdk7 |
java_oracle7 |
javanano_jdk6 |
javanano_jdk7 |
javanano_oracle7 |
objectivec_ios |
...
...
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