Skip to content

Commit

Permalink
Merge pull request #1 from thibaultCha/chore/ci
Browse files Browse the repository at this point in the history
chore: add Travis CI and rockspec
  • Loading branch information
thibaultcha committed Feb 21, 2016
2 parents 9b49447 + 662890d commit 9dd058f
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .ci/setup_argon2.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

set -e

git clone https://github.com/P-H-C/phc-winner-argon2.git $ARGON2_DIR
pushd $ARGON2_DIR
git checkout $ARGON2_VERSION
make
make test
popd

26 changes: 26 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
sudo: false
notifications:
email: false
env:
global:
- ARGON2_VERSION=20151206
- ARGON2_DIR=$HOME/argon2
matrix:
- LUA="luajit 2.0"
- LUA="luajit 2.1"
before_install:
- bash .ci/setup_argon2.sh
- pip install --user hererocks
- hererocks lua_install -r^ --$LUA
- export PATH=$PATH:$PWD/lua_install/bin
- luarocks install busted
- luarocks install luacov-coveralls
- export LD_LIBRARY_PATH="$HOME/argon2"
install:
- luarocks make
script:
- busted -v -o gtest --repeat 3 spec
after_success:
- coveralls -b . -r . -i ./src
cache:
pip: true
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

FFI binding of [Argon2] for LuaJIT.

While [lua-argon2] provides a pure Lua binding through the Lua C API, this module is intended for use with LuaJIT, especially in [ngx_lua]/[OpenResty] for performance reasons.
While [lua-argon2] provides a pure Lua binding through the Lua C API, this module is for use with LuaJIT only, especially in [ngx_lua]/[OpenResty] for performance reasons.

### Prerequisites

Expand Down
17 changes: 17 additions & 0 deletions argon2-ffi-0.0.1-0.rockspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package = "argon2-ffi"
version = "0.0.1-0"
source = {
url = "git://github.com/thibaultCha/lua-argon2-ffi",
tag = "0.0.1"
}
description = {
summary = "LuaJIT FFI binding for the Argon2 password hashing algorithm",
homepage = "https://github.com/thibaultCha/lua-argon2-ffi",
license = "MIT"
}
build = {
type = "builtin",
modules = {
["argon2"] = "src/argon2.lua"
}
}

0 comments on commit 9dd058f

Please sign in to comment.