gfxmonk / mocktest

powerful mock, expectation and unit test helpers for python

This URL has Read+Write access

mocktest / Capfile
100644 24 lines (20 sloc) 0.388 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
desc 'build'
task :build do
`rm -i dist/*`
`./setup.py bdist_egg`
end
 
desc 'upload to cheese shop'
task :upload_ do
`./setup.py bdist_egg upload`
end
 
desc 'clean'
task :clean do
`rm -rf build dist`
end
 
desc 'copy (to=dest_dir)'
task :copy do
dest = ENV['to'] or raise('please specify `to`')
`rm -i "#{dest}/mocktest*.egg"`
`cp -i dist/mocktest*.egg '#{dest}'`
puts "Done!"
end