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
2fe04838
Commit
2fe04838
authored
May 13, 2015
by
Chris Fallin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #383 from cfallin/ruby-travis
Add Ruby to Travis testing
parents
23bb79d4
eb37551a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
3 deletions
+33
-3
.travis.yml
.travis.yml
+1
-0
pom.xml
ruby/pom.xml
+9
-1
basic.rb
ruby/tests/basic.rb
+4
-2
travis-test.sh
ruby/travis-test.sh
+19
-0
No files found.
.travis.yml
View file @
2fe04838
...
@@ -14,6 +14,7 @@ script:
...
@@ -14,6 +14,7 @@ script:
-
cd python && python setup.py build && python setup.py test && cd ..
-
cd python && python setup.py build && python setup.py test && cd ..
-
export LD_LIBRARY_PATH=../src/.libs
-
export LD_LIBRARY_PATH=../src/.libs
-
cd python && python setup.py build --cpp_implementation && python setup.py test --cpp_implementation && cd ..
-
cd python && python setup.py build --cpp_implementation && python setup.py test --cpp_implementation && cd ..
-
cd ruby && sh travis-test.sh && cd ..
-
cd conformance && make test_java && cd ..
-
cd conformance && make test_java && cd ..
-
make distcheck -j2
-
make distcheck -j2
notifications
:
notifications
:
...
...
ruby/pom.xml
View file @
2fe04838
...
@@ -61,6 +61,14 @@
...
@@ -61,6 +61,14 @@
</execution>
</execution>
</executions>
</executions>
</plugin>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-compiler-plugin
</artifactId>
<configuration>
<source>
1.6
</source>
<target>
1.6
</target>
</configuration>
</plugin>
</plugins>
</plugins>
</build>
</build>
<dependencies>
<dependencies>
...
@@ -78,7 +86,7 @@
...
@@ -78,7 +86,7 @@
<dependency>
<dependency>
<groupId>
com.google.protobuf
</groupId>
<groupId>
com.google.protobuf
</groupId>
<artifactId>
protobuf-java
</artifactId>
<artifactId>
protobuf-java
</artifactId>
<version>
3.0.0-alpha-
3-pre
</version>
<version>
3.0.0-alpha-
2
</version>
</dependency>
</dependency>
</dependencies>
</dependencies>
</project>
</project>
ruby/tests/basic.rb
View file @
2fe04838
...
@@ -1035,7 +1035,8 @@ module BasicTest
...
@@ -1035,7 +1035,8 @@ module BasicTest
end
end
def
test_json
def
test_json
skip
(
"Unimplemented"
)
if
RUBY_PLATFORM
==
"java"
# TODO: Fix JSON in JRuby version.
return
if
RUBY_PLATFORM
==
"java"
m
=
TestMessage
.
new
(
:optional_int32
=>
1234
,
m
=
TestMessage
.
new
(
:optional_int32
=>
1234
,
:optional_int64
=>
-
0x1_0000_0000
,
:optional_int64
=>
-
0x1_0000_0000
,
:optional_uint32
=>
0x8000_0000
,
:optional_uint32
=>
0x8000_0000
,
...
@@ -1066,7 +1067,8 @@ module BasicTest
...
@@ -1066,7 +1067,8 @@ module BasicTest
end
end
def
test_json_maps
def
test_json_maps
skip
(
"Unimplemented"
)
if
RUBY_PLATFORM
==
"java"
# TODO: Fix JSON in JRuby version.
return
if
RUBY_PLATFORM
==
"java"
m
=
MapMessage
.
new
(
:map_string_int32
=>
{
"a"
=>
1
})
m
=
MapMessage
.
new
(
:map_string_int32
=>
{
"a"
=>
1
})
expected
=
'{"map_string_int32":{"a":1},"map_string_msg":{}}'
expected
=
'{"map_string_int32":{"a":1},"map_string_msg":{}}'
assert
MapMessage
.
encode_json
(
m
)
==
expected
assert
MapMessage
.
encode_json
(
m
)
==
expected
...
...
ruby/travis-test.sh
0 → 100755
View file @
2fe04838
#!/bin/bash
# Exit on any error.
set
-e
test_version
()
{
version
=
$1
bash
--login
-c
\
"rvm install
$version
&& rvm use
$version
&&
\
which ruby &&
\
gem install bundler && bundle &&
\
rake test"
}
test_version ruby-1.9
test_version ruby-2.0
test_version ruby-2.1
test_version ruby-2.2
test_version jruby
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