Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/threads-ffi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoumith Chintala <soumith@gmail.com>2015-11-15 01:03:47 +0300
committerSoumith Chintala <soumith@gmail.com>2015-11-15 01:03:47 +0300
commite050c679a2c9c2bd81eab57e5ae7904f6be198a3 (patch)
treecbcbf013828af5a79697045f45fa208f4703d48d
parentfeb469692e996eba776a48fa8c44f7798c56a1cd (diff)
Update .travis.yml
-rw-r--r--.travis.yml15
1 files changed, 13 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml
index 30c2d9b..eb1384d 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -5,6 +5,10 @@ compiler:
cache:
directories:
- $HOME/OpenBlasInstall
+env:
+ - TORCH_LUA_VERSION=LUAJIT21
+ - TORCH_LUA_VERSION=LUA51
+ - TORCH_LUA_VERSION=LUA52
sudo: false
addons:
apt:
@@ -41,10 +45,17 @@ before_script:
- cd ~/torch && git submodule update --init --recursive
- mkdir build && cd build
- export CMAKE_LIBRARY_PATH=$HOME/OpenBlasInstall/include:$HOME/OpenBlasInstall/lib:$CMAKE_LIBRARY_PATH
-- cmake .. -DCMAKE_INSTALL_PREFIX="${INSTALL_PREFIX}" -DCMAKE_BUILD_TYPE=Release -DWITH_LUAJIT21=ON
+- cmake .. -DCMAKE_INSTALL_PREFIX="${INSTALL_PREFIX}" -DCMAKE_BUILD_TYPE=Release -DWITH_${TORCH_LUA_VERSION}=ON
- make && make install
- cd $ROOT_TRAVIS_DIR
- export LD_LIBRARY_PATH=${INSTALL_PREFIX}/lib:$LD_LIBRARY_PATH
script:
- ${INSTALL_PREFIX}/bin/luarocks make rocks/threads-scm-1.rockspec
-- ${INSTALL_PREFIX}/bin/luajit -lthreads -e "print('threads loaded succesfully')"
+- export PATH=${INSTALL_PREFIX}/bin:$PATH
+- export TESTLUA=$(which luajit lua | head -n 1)
+- ${TESTLUA} -lthreads -e "print('threads loaded succesfully')"
+- cd test
+- ${TESTLUA} test-threads.lua
+- ${TESTLUA} test-threads-async.lua
+- ${TESTLUA} test-threads-shared.lua
+- ${TESTLUA} test-traceback.lua