Skip to content

Commit

Permalink
Merge branch 'devel' into 'devel'
Browse files Browse the repository at this point in the history
Add CI on devel, fix #34

See merge request loco-3d/cddp!26
  • Loading branch information
Carlos Mastalli committed Nov 28, 2018
2 parents 0d23310 + 0a547fb commit 2c07156
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
image: gepgitlab.laas.fr:4567/loco-3d/cddp

test:
script:
- cd unittest && python all.py
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM gepgitlab.laas.fr:4567/gepetto/buildfarm/robotpkg-jrl:16.04

RUN apt-get update -qqy \
&& apt-get install -qqy \
robotpkg-py27-pinocchio \
robotpkg-talos-data \
&& rm -rf /var/lib/apt/lists/*
5 changes: 4 additions & 1 deletion unittest/all.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import unittest
import sys

testmodules = [
'cost',
'soft_constraint',
Expand All @@ -19,4 +21,5 @@
# else, just load all the test cases from the module.
suite.addTest(unittest.defaultTestLoader.loadTestsFromName(t))

unittest.TextTestRunner().run(suite)
result = unittest.TextTestRunner().run(suite)
sys.exit(len(result.errors) + len(result.failures))

0 comments on commit 2c07156

Please sign in to comment.