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

github.com/torch/nngraph.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsoumith <soumith@gmail.com>2015-11-10 01:26:37 +0300
committersoumith <soumith@gmail.com>2015-11-10 01:26:37 +0300
commit3d72268d47fbd0ce6f8918bc2a907e2d07e8493a (patch)
tree3e7e33e7c3585c058e40495c27944e0367287299
parent68d55ee75a2c06724dfd12e65f510ff52e8b6894 (diff)
contbuild for Lua51, Lua52
-rw-r--r--.travis.yml15
1 files changed, 10 insertions, 5 deletions
diff --git a/.travis.yml b/.travis.yml
index 8b631b9..60ac37c 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -7,6 +7,10 @@ cache:
- $HOME/OpenBlasInstall
- $HOME/GraphViz
sudo: false
+env:
+ - TORCH_LUA_VERSION=LUAJIT21
+ - TORCH_LUA_VERSION=LUA51
+ - TORCH_LUA_VERSION=LUA52
addons:
apt:
packages:
@@ -44,16 +48,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
-- ${INSTALL_PREFIX}/bin/luajit -lnngraph -e "print('nngraph loaded succesfully')"
+- export TESTLUA=$(which luajit lua | head -n 1)
+- ${TESTLUA} -lnngraph -e "print('nngraph loaded succesfully')"
- ${INSTALL_PREFIX}/bin/luarocks install totem
- cd test
-- ${INSTALL_PREFIX}/bin/luajit test_ModuleFromCriterion.lua
-- ${INSTALL_PREFIX}/bin/luajit test_nest.lua
-- ${INSTALL_PREFIX}/bin/luajit test_nngraph.lua
+- ${TESTLUA} test_ModuleFromCriterion.lua
+- ${TESTLUA} test_nest.lua
+- ${TESTLUA} test_nngraph.lua