Merge pull request #4 from taylorfinnell/add-travis-badge-to-readme

add travis badge to readme
This commit is contained in:
Andrew Hamon 2018-02-13 22:21:03 -05:00 committed by GitHub
commit dfdb784783
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 0 deletions

View File

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

View File

@ -1,4 +1,5 @@
# cox # cox
[![Build Status](https://travis-ci.org/andrewhamon/cox.svg?branch=master)](https://travis-ci.org/andrewhamon/cox)
Crystal bindings for the [libsodium box API](https://download.libsodium.org/doc/public-key_cryptography/authenticated_encryption.html) Crystal bindings for the [libsodium box API](https://download.libsodium.org/doc/public-key_cryptography/authenticated_encryption.html)

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