Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
rubygemsrecipe
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
Jérome Perrin
rubygemsrecipe
Commits
2c130b2f
Commit
2c130b2f
authored
Jan 26, 2014
by
sirex
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tests.
parent
9550cfd3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
66 additions
and
1 deletion
+66
-1
rubygems.py
rubygems.py
+1
-1
tests/buildout.cfg
tests/buildout.cfg
+12
-0
tests/runtests.py
tests/runtests.py
+53
-0
No files found.
rubygems.py
View file @
2c130b2f
...
@@ -92,7 +92,7 @@ class Recipe(object):
...
@@ -92,7 +92,7 @@ class Recipe(object):
}
}
env_override
=
self
.
options
.
get
(
'environment'
,
''
)
env_override
=
self
.
options
.
get
(
'environment'
,
''
)
env_override
=
self
.
_get_env_override
(
env_override
)
env_override
=
self
.
_get_env_override
(
env_override
)
env
=
{
k
:
v
%
env
for
k
,
v
in
env_override
}
env
.
update
({
k
:
v
%
env
for
k
,
v
in
env_override
})
return
env
return
env
def
_get_latest_rubygems
(
self
):
def
_get_latest_rubygems
(
self
):
...
...
tests/buildout.cfg
0 → 100644
View file @
2c130b2f
[buildout]
parts =
rubygems
develop =
..
[rubygems]
recipe = rubygemsrecipe
gems =
sass
compass==0.10
tests/runtests.py
0 → 100755
View file @
2c130b2f
#!/usr/bin/env python
import
re
import
os.path
import
logging
import
subprocess
def
sh
(
cmd
):
retcode
=
subprocess
.
call
(
cmd
,
shell
=
True
)
assert
retcode
==
0
def
shr
(
cmd
):
return
subprocess
.
check_output
(
cmd
,
shell
=
True
)
def
clean
():
logging
.
info
(
'Cleaning environment...'
)
paths
=
(
'.installed.cfg'
,
'bin'
,
'bootstrap.py'
,
'develop-eggs'
,
'include'
,
'lib'
,
'local'
,
'parts'
,
)
for
path
in
paths
:
if
os
.
path
.
exists
(
path
):
sh
(
'rm -r %s'
%
path
)
def
main
():
logging
.
basicConfig
(
format
=
'%(message)s'
,
level
=
logging
.
INFO
)
clean
()
sh
(
'wget http://downloads.buildout.org/2/bootstrap.py'
)
sh
(
'virtualenv --no-site-packages .'
)
sh
(
'bin/pip install --upgrade setuptools'
)
sh
(
'bin/python bootstrap.py'
)
sh
(
'bin/buildout'
)
assert
re
.
match
(
r'^Sass \
d+(
\.\
d+){
2} \
([
a-zA-Z ]+\
)$
',
shr('
bin
/
sass
--
version
').strip()
)
if __name__ == '
__main__
':
main()
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