Skip to content
Snippets Groups Projects
Commit 83c0648e authored by Donald Stufft's avatar Donald Stufft
Browse files

Add a single libnacl builder to smoke test it

parent 22637a55
No related branches found
No related tags found
No related merge requests found
...@@ -19,3 +19,25 @@ env: ...@@ -19,3 +19,25 @@ env:
matrix: matrix:
- NACL=libsodium - NACL=libsodium
- NACL=nacl - NACL=nacl
matrix:
exclude:
- python: "2.6"
env:
- NACL=nacl
- LD_LIBRARY_PATH=/usr/local/lib
- LD_RUN_PATH=/usr/local/lib
- python: "3.2"
env:
- NACL=nacl
- LD_LIBRARY_PATH=/usr/local/lib
- LD_RUN_PATH=/usr/local/lib
- python: "3.3"
env:
- NACL=nacl
- LD_LIBRARY_PATH=/usr/local/lib
- LD_RUN_PATH=/usr/local/lib
- python: "pypy"
env:
- NACL=nacl
- LD_LIBRARY_PATH=/usr/local/lib
- LD_RUN_PATH=/usr/local/lib
...@@ -44,11 +44,27 @@ def install_nacl(library): ...@@ -44,11 +44,27 @@ def install_nacl(library):
os.chdir(curdir) os.chdir(curdir)
def _install_nacl(): def _install_nacl():
# Determine if we are running under Ubuntu tarball_path = os.path.expanduser("~/nacl-20110221.tar.bz2")
if platform.linux_distribution()[0] == "Ubuntu":
run("sudo apt-get install libnacl-dev")
raise NotImplementedError # Download libnacl and verify it's hash
download(
"http://hyperelliptic.org/nacl/nacl-20110221.tar.bz2",
"4f277f89735c8b0b8a6bbd043b3efb3fa1cc68a9a5da6a076507d067fc3b3bf8",
tarball_path,
)
curdir = os.getcwd()
try:
os.chdir(os.path.expanduser("~/"))
# Unpack the tarball
run("tar xf nacl-20110221.tar.bz2")
# Configure and install the library
os.chdir(os.path.expanduser("~/nacl-20110221/"))
run("sudo ./do")
finally:
os.chdir(curdir)
libraries = { libraries = {
"libsodium": _install_libsodium, "libsodium": _install_libsodium,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment