Skip to content

Commit

Permalink
Merge 13bf923 into 173f457
Browse files Browse the repository at this point in the history
  • Loading branch information
cpeosphoros committed Aug 5, 2017
2 parents 173f457 + 13bf923 commit 4ba2f26
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Expand Up @@ -18,10 +18,11 @@ before_install:
- pip install --user cpp-coveralls
- luarocks install Lua-cURL --server=https://luarocks.org/dev
- luarocks install luacov-coveralls --server=https://luarocks.org/dev
- luarocks install telescope 0.6.0 --server=http://rocks.moonscript.org
- luarocks install telescope --server=http://rocks.moonscript.org
- bash .travis/fixtsc.sh

script: "tsc -f specs/*"

after_success:
- luacov-coveralls -c .luacov -e 30log-

Expand Down
11 changes: 11 additions & 0 deletions .travis/fixtsc.sh
@@ -0,0 +1,11 @@
#! /bin/bash

# A script for fixing telescope to run with lua 5.2 and 5.3


if [ "$LUA" == "lua5.2" ]; then
sed 's/compat_env.setfenv/compat_env.setfenv\nlocal unpack = unpack or table.unpack/' ${TRAVIS_BUILD_DIR}/install/luarocks/share/lua/5.2/telescope.lua
elif [ "$LUA" == "lua5.3" ]; then
sed 's/compat_env.setfenv/compat_env.setfenv\nlocal unpack = unpack or table.unpack/' ${TRAVIS_BUILD_DIR}/install/luarocks/share/lua/5.3/telescope.lua
fi

0 comments on commit 4ba2f26

Please sign in to comment.