Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pygeoip
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
pygeoip
Commits
6e94f20b
Commit
6e94f20b
authored
Jul 16, 2013
by
William Tisäter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Always run build.sh from repository root
parent
b1790797
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
21 deletions
+23
-21
build.sh
+23
-21
No files found.
build.sh
View file @
6e94f20b
...
@@ -3,29 +3,31 @@
...
@@ -3,29 +3,31 @@
function
warning
{
echo
"Warning:
$1
"
;
}
function
warning
{
echo
"Warning:
$1
"
;
}
function
error
{
echo
"Error:
$1
"
1>&2
;
exit
1
;
}
function
error
{
echo
"Error:
$1
"
1>&2
;
exit
1
;
}
if
[
-z
"
$(
virtualenv
--version
)
"
]
;
then
pushd
$(
dirname
$0
)
error
"Missing virtualenv binary"
if
[
-z
"
$(
virtualenv
--version
)
"
]
;
then
fi
error
"Missing virtualenv binary"
fi
if
[
!
-d
venv
]
;
then
if
[
!
-d
venv
]
;
then
virtualenv venv
||
error
"virtualenv failed"
virtualenv venv
||
error
"virtualenv failed"
venv/bin/pip install tox nose epydoc
||
error
"pip failed"
venv/bin/pip install tox nose epydoc
||
error
"pip failed"
fi
fi
if
[
!
-d
tests/data
]
;
then
if
[
!
-d
tests/data
]
;
then
pushd
tests
pushd
tests
wget http://www.defunct.cc/maxmind-geoip-samples.tar.gz
wget http://www.defunct.cc/maxmind-geoip-samples.tar.gz
tar
-zxvf
maxmind-geoip-samples.tar.gz
tar
-zxvf
maxmind-geoip-samples.tar.gz
unlink maxmind-geoip-samples.tar.gz
unlink maxmind-geoip-samples.tar.gz
popd
popd
fi
fi
venv/bin/tox
||
error
"tox failed"
venv/bin/tox
||
error
"tox failed"
venv/bin/epydoc
--config
=
epydoc.ini
--no-private
||
error
"epydoc failed"
venv/bin/epydoc
--config
=
epydoc.ini
--no-private
||
error
"epydoc failed"
if
[
-z
"
$(
pandoc
--version
)
"
]
;
then
if
[
-z
"
$(
pandoc
--version
)
"
]
;
then
warning
"Skipping Markdown to reStructuredText translation"
warning
"Skipping Markdown to reStructuredText translation"
else
else
pandoc
-f
markdown
-t
rst
-o
README.rst README.md
||
error
"pandoc failed"
pandoc
-f
markdown
-t
rst
-o
README.rst README.md
||
error
"pandoc failed"
fi
fi
popd
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