Skip to content

Commit

Permalink
Update travis file.
Browse files Browse the repository at this point in the history
  • Loading branch information
moteus committed Apr 21, 2016
1 parent d1b3507 commit 5bec398
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ install:
- if [ "$LUA" != "lua 5.3" ]; then
luarocks show struct || luarocks install struct;
fi
- if [ "$LUA" != "lua 5.3" ]; then
- if [ "$LUA" == "lua 5.1" ]; then
luarocks show luacrypto || luarocks install luacrypto;
fi
- if [ "$LUA" == "lua 5.3" ]; then
luarocks show openssl || luarocks install openssl;
- if [ "$LUA" != "lua 5.1" ]; then
luarocks show openssl || bash .travis/setup_openssl.sh;
fi
- luarocks make rockspecs/zipwriter-scm-0.rockspec --deps-mode=none

Expand Down
13 changes: 13 additions & 0 deletions .travis/setup_openssl.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#! /bin/bash

source .travis/platform.sh

cd $TRAVIS_BUILD_DIR

git clone --depth=1 --recursive https://github.com/zhaozg/lua-openssl.git

cd lua-openssl

luarocks make rockspecs/openssl-scm-1.rockspec

cd $TRAVIS_BUILD_DIR

0 comments on commit 5bec398

Please sign in to comment.