install libsodium for travis

master
Taylor Finnell 2018-02-13 19:57:29 -05:00
parent 243748cb1f
commit 7dbeb7d47f
2 changed files with 20 additions and 0 deletions

View File

@ -1 +1,6 @@
sudo: true
language: crystal
install:
- ./travis-install-lib-sodium.sh
before_script:
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib

15
travis-install-lib-sodium.sh Executable file
View File

@ -0,0 +1,15 @@
#!/bin/sh
# The purpose of this file is to install libsodium in
# the Travis CI environment. Outside this environment,
# you would probably not want to install it like this.
#
# from: google/hat-backup
set -e
wget https://download.libsodium.org/libsodium/releases/libsodium-stable-2018-02-14.tar.gz
tar xvfz libsodium-stable-2018-02-14.tar.gz
cd libsodium-stable
sudo ./configure
sudo make
sudo make install