Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.recipe.cmmi
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Boxiang Sun
slapos.recipe.cmmi
Commits
ea57bedd
Commit
ea57bedd
authored
Jul 11, 2013
by
Jondy Zhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add how to run test and distribute in the README.rst
parent
a5b2aa92
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
0 deletions
+43
-0
README.rst
README.rst
+43
-0
No files found.
README.rst
View file @
ea57bedd
...
...
@@ -8,6 +8,49 @@ The recipe provides the means to compile and install source distributions
using ``configure`` and ``make`` and other similar tools. It is inspired by
the hexagonit.recipe.cmmi_ recipe but provides more control over the build process.
Use python 2.7 to run test, at least python 2.6 results in some
failures in the tests.py:
TypeError: failUnlessRaises() takes at least 3 arguments (2 given)
First, we make test environments:
cd slapos.recipe.cmmi
wget http://downloads.buildout.org/2/bootstrap.py
wget http://svn.zope.org/*checkout*/zc.buildout/trunk/bootstrap/bootstrap.py
cat <<EOF > buildout.cfg
[buildout]
develop = .
parts = test
prefix = /tmp/test
[test]
recipe = zc.recipe.testrunner
eggs =
slapos.recipe.cmmi[test]
EOF
python -S bootstrap.py --version 1.7.0
bin/buildout
It will generate script bin/test, run it to do all the testcases:
bin/test
After source changed, run buildout to update eggs again:
bin/buildout -v -N
bin/test
Build dist/slapos.recipe.cmmi-0.2-py2.7.egg
bin/buildout setup setup.py bdist_egg
Build source package dist/slapos.recipe.cmmi-0.2.tar.gz
python setup.py sdist
Repository: http://git.erp5.org/gitweb/slapos.recipe.cmmi.git
Clone URL: git clone http://git.erp5.org/repos/slapos.recipe.cmmi.git
...
...
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