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
5de2a81b
Commit
5de2a81b
authored
Aug 20, 2015
by
Dan O'Reilly
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve tox.ini, install py26 for travis.
Signed-off-by:
Dan O'Reilly
<
oreilldf@gmail.com
>
parent
afa488c4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
12 deletions
+24
-12
tox.ini
python/tox.ini
+10
-7
travis.sh
travis.sh
+14
-5
No files found.
python/tox.ini
View file @
5de2a81b
...
...
@@ -2,17 +2,20 @@
envlist
=
# Py3 tests currently fail because of text handling issues,
# So only test py26/py27 for now.
#py
26,py27,py33,py34
py
26,py27
#py
{26,27,33,34}-{cpp,python}
py
{26,27}-{cpp,python}
[testenv]
usedevelop
=
true
setenv
=
LD_LIBRARY_PATH
=
{toxinidir}/../src/.libs
cpp:
LD_LIBRARY_PATH
=
{toxinidir}/../src/.libs
cpp:
PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION
=
cpp
commands
=
python
setup.py
-q
build_py
python
setup.py
-q
build
{posargs}
python
setup.py
-q
test
-q
{posargs}
pip
install
--install-option
{posargs:
-q}
.
python:
python
setup.py
-q
build
cpp:
python
setup.py
-q
build
--cpp_implementation
python:
python
setup.py
-q
test
-q
cpp:
python
setup.py
-q
test
-q
--cpp_implementation
deps
=
six
py26:
ordereddict
py26:
unittest2
travis.sh
View file @
5de2a81b
...
...
@@ -111,21 +111,30 @@ build_javanano_oracle7() {
build_javanano
}
internal_install_python_deps
()
{
sudo
pip
install
tox
sudo
apt-get
install
-y
python-software-properties
# for apt-add-repository
sudo
apt-add-repository
-y
ppa:fkrull/deadsnakes
sudo
apt-get update
-qq
sudo
apt-get
install
-y
python2.6 python2.6-dev
}
build_python
()
{
internal_build_cpp
sudo
pip
install
tox
internal_install_python_deps
cd
python
tox
tox
-e
py26-python,py27-python
cd
..
}
build_python_cpp
()
{
internal_build_cpp
sudo
pip
install
tox
export
LD_LIBRARY_PATH
=
../src/.libs
# for Linux
internal_install_python_deps
export
LD_LIBRARY_PATH
=
../src/.libs
# for Linux
export
DYLD_LIBRARY_PATH
=
../src/.libs
# for OS X
cd
python
tox
-
-
--cpp_implementation
tox
-
e
py26-cpp,py27-cpp
cd
..
}
...
...
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