Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
pinocchio
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Stack Of Tasks
pinocchio
Commits
786e36b6
Commit
786e36b6
authored
8 years ago
by
jcarpent
Browse files
Options
Downloads
Patches
Plain Diff
[Travis] Use coverage with python 2.7
parent
fa854980
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.travis.yml
+4
-3
4 additions, 3 deletions
.travis.yml
python/tests.py
+3
-1
3 additions, 1 deletion
python/tests.py
travis_custom/custom_before_install
+1
-1
1 addition, 1 deletion
travis_custom/custom_before_install
travis_custom/custom_build
+1
-1
1 addition, 1 deletion
travis_custom/custom_build
with
9 additions
and
6 deletions
.travis.yml
+
4
−
3
View file @
786e36b6
language
:
cpp
language
:
generic
python
:
-
"
2.7"
sudo
:
required
...
...
@@ -30,6 +30,7 @@ allow_failures:
before_install
:
./travis_custom/custom_before_install
install
:
-
pip install --user coveralls
-
pip install --user numpy
script
:
-
export CMAKE_ADDITIONAL_OPTIONS="-DCMAKE_BUILD_TYPE=${BUILDTYPE}"
-
sudo free -m -t
...
...
@@ -39,7 +40,7 @@ after_success:
-
./.travis/run after_success
#- export PYTHONPATH=$install_dir/lib/python2.7/site-packages
#- coveralls-lcov -v -n $build_dir/coverage.info > coverage.json
-
export PYTHONPATH=/tmp/_ci/install/lib/python2.7/site-packages
-
export PYTHONPATH=
$PYHTONPATH:
/tmp/_ci/install/lib/python2.7/site-packages
:/usr/lib/python2.7/dist-packages
-
coveralls-lcov -v -n /tmp/_ci/build/coverage.info > coverage.json
-
coverage run ./python/tests.py
-
coverage
2
run ./python/tests.py
-
coveralls --merge=coverage.json
This diff is collapsed.
Click to expand it.
python/tests.py
+
3
−
1
View file @
786e36b6
#!/usr/bin/env python
import
unittest
import
unittest
,
sys
from
bindings
import
TestSE3
# noqa
from
explog
import
TestExpLog
# noqa
...
...
@@ -9,4 +9,6 @@ from rpy import TestRPY # noqa
from
utils
import
TestUtils
# noqa
if
__name__
==
'
__main__
'
:
print
"
Python version
"
print
sys
.
version_info
unittest
.
main
()
This diff is collapsed.
Click to expand it.
travis_custom/custom_before_install
+
1
−
1
View file @
786e36b6
...
...
@@ -15,7 +15,7 @@ sudo free -m -t
# Setup environment variables.
export
APT_DEPENDENCIES
=
"doxygen libboost-system-dev libboost-test-dev libboost-filesystem-dev libboost-program-options-dev libeigen3-dev libtinyxml-dev robotpkg-urdfdom libconsole-bridge-dev"
# Add Python dependency
export
APT_DEPENDENCIES
=
$APT_DEPENDENCIES
" lib
python2.7 libboost-
python-dev python-numpy
robotpkg-eigenpy
"
export
APT_DEPENDENCIES
=
$APT_DEPENDENCIES
" lib
boost-python-dev robotpkg-eigenpy
python
2.7
-dev python-numpy"
# Add Geometry dependencies
#export APT_DEPENDENCIES=$APT_DEPENDENCIES" robotpkg-hpp-fcl robotpkg-assimp robotpkg-octomap"
...
...
This diff is collapsed.
Click to expand it.
travis_custom/custom_build
+
1
−
1
View file @
786e36b6
...
...
@@ -6,7 +6,7 @@ set -x
set
-v
# Setup environment variables.
export
CMAKE_ADDITIONAL_OPTIONS
=
"
${
CMAKE_ADDITIONAL_OPTIONS
}
-DBUILD_BENCHMARK=
\"
ON
\"
-DBUILD_UNIT_TESTS=
\"
ON
\"
"
export
CMAKE_ADDITIONAL_OPTIONS
=
"
${
CMAKE_ADDITIONAL_OPTIONS
}
-DBUILD_BENCHMARK=
\"
ON
\"
-DBUILD_UNIT_TESTS=
\"
ON
\"
"
export
PKG_CONFIG_PATH
=
"
${
PKG_CONFIG_PATH
}
:/opt/openrobots/lib/pkgconfig"
export
LD_LIBRARY_PATH
=
"
${
LD_LIBRARY_PATH
}
:/opt/openrobots/lib"
# Setup environment variables.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment