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
738393b2
Commit
738393b2
authored
Feb 19, 2016
by
Josh Haberman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try running multiple tests in a row.
parent
d33e93b8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
57 additions
and
51 deletions
+57
-51
.travis.yml
.travis.yml
+1
-1
jenkins.sh
tools/run_tests/jenkins.sh
+9
-3
tests.sh
tools/run_tests/tests.sh
+47
-2
travis.sh
tools/run_tests/travis.sh
+0
-45
No files found.
.travis.yml
View file @
738393b2
...
...
@@ -10,7 +10,7 @@ os:
# The Objective C build needs Xcode 7.0 or later.
osx_image
:
xcode7.2
script
:
-
./tools/run_tests/t
ravi
s.sh $CONFIG
-
./tools/run_tests/t
est
s.sh $CONFIG
env
:
-
CONFIG=cpp
-
CONFIG=cpp_distcheck
...
...
tools/run_tests/jenkins.sh
View file @
738393b2
#!/bin/bash
MY_DIR
=
"
$(
dirname
"
$0
"
)
"
TEST_SCRIPT
=
$MY_DIR
/tests.sh
BUILD_DIR
=
/tmp/protobuf
source
$MY_DIR
/tests.sh
# Set value used in tests.sh.
PARALLELISM
=
-j8
set
-x
# display all commands
rm
-rf
$BUILD_DIR
mkdir
-p
$BUILD_DIR
cd
$BUILD_DIR
git clone /var/local/jenkins/protobuf
cd
protobuf
build_cpp
# If protoc fails to build, we can't test anything else.
$TEST_SCRIPT
cpp
||
exit
1
# Other tests can fail and we keep on going.
$TEST_SCRIPT
java_jdk6
$TEST_SCRIPT
java_jdk7
tools/run_tests/tests.sh
100644 → 100755
View file @
738393b2
# This file is not intended to be executed directly. It is intended to be
# included in a larger shell script.
#!/bin/bash
# For when some other test needs the C++ main build, including protoc and
# libprotobuf.
internal_build_cpp
()
{
if
[
-f
src/protoc
]
;
then
# Already built.
return
fi
if
[[
$(
uname
-s
)
==
"Linux"
&&
"
$TRAVIS
"
==
"true"
]]
;
then
# Install GCC 4.8 to replace the default GCC 4.6. We need 4.8 for more
# decent C++ 11 support in order to compile conformance tests.
...
...
@@ -277,3 +281,44 @@ build_javascript() {
cd
js
&&
npm
install
&&
npm
test
&&
cd
..
}
[
-n
"
${
PARALLELISM
}
"
]
&&
PARALLELISM
=
-j8
# Note: travis currently does not support testing more than one language so the
# .travis.yml cheats and claims to only be cpp. If they add multiple language
# support, this should probably get updated to install steps and/or
# rvm/gemfile/jdk/etc. entries rather than manually doing the work.
# .travis.yml uses matrix.exclude to block the cases where app-get can't be
# use to install things.
# -------- main --------
# Set value used in tests.sh.
PARALLELISM
=
-j2
if
[
"$#"
-ne
1
]
;
then
echo
"
Usage:
$0
{ cpp |
csharp |
java_jdk6 |
java_jdk7 |
java_oracle7 |
javanano_jdk6 |
javanano_jdk7 |
javanano_oracle7 |
objectivec_ios |
objectivec_osx |
python |
python_cpp |
ruby_19 |
ruby_20 |
ruby_21 |
ruby_22 |
jruby }
"
exit
1
fi
set
-e
# exit immediately on error
set
-x
# display all commands
eval
"build_
$1
"
tools/run_tests/travis.sh
deleted
100755 → 0
View file @
d33e93b8
#!/usr/bin/env bash
MY_DIR
=
"
$(
dirname
"
$0
"
)
"
source
$MY_DIR
/tests.sh
# Note: travis currently does not support testing more than one language so the
# .travis.yml cheats and claims to only be cpp. If they add multiple language
# support, this should probably get updated to install steps and/or
# rvm/gemfile/jdk/etc. entries rather than manually doing the work.
# .travis.yml uses matrix.exclude to block the cases where app-get can't be
# use to install things.
# -------- main --------
# Set value used in tests.sh.
PARALLELISM
=
-j2
if
[
"$#"
-ne
1
]
;
then
echo
"
Usage:
$0
{ cpp |
csharp |
java_jdk6 |
java_jdk7 |
java_oracle7 |
javanano_jdk6 |
javanano_jdk7 |
javanano_oracle7 |
objectivec_ios |
objectivec_osx |
python |
python_cpp |
ruby_19 |
ruby_20 |
ruby_21 |
ruby_22 |
jruby }
"
exit
1
fi
set
-e
# exit immediately on error
set
-x
# display all commands
eval
"build_
$1
"
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