forked from torch/cutorch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request torch#429 from szagoruyko/travis-final
Travis build tests
- Loading branch information
Showing
1 changed file
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
language: c | ||
compiler: | ||
- gcc | ||
- clang | ||
cache: | ||
directories: | ||
- $HOME/OpenBlasInstall | ||
sudo: true | ||
env: | ||
- TORCH_LUA_VERSION=LUAJIT21 | ||
- TORCH_LUA_VERSION=LUA51 | ||
- TORCH_LUA_VERSION=LUA52 | ||
addons: | ||
apt: | ||
packages: | ||
- cmake | ||
- gfortran | ||
- gcc-multilib | ||
- gfortran-multilib | ||
- liblapack-dev | ||
- build-essential | ||
- gcc | ||
- g++ | ||
- curl | ||
- cmake | ||
- libreadline-dev | ||
- git-core | ||
- libqt4-core | ||
- libqt4-gui | ||
- libqt4-dev | ||
- libjpeg-dev | ||
- libpng-dev | ||
- ncurses-dev | ||
- imagemagick | ||
- libzmq3-dev | ||
- gfortran | ||
- unzip | ||
- gnuplot | ||
- gnuplot-x11 | ||
before_script: | ||
- export ROOT_TRAVIS_DIR=$(pwd) | ||
- export INSTALL_PREFIX=~/torch/install | ||
- ls $HOME/OpenBlasInstall/lib || (cd /tmp/ && git clone https://github.com/xianyi/OpenBLAS.git -b master && cd OpenBLAS && (make NO_AFFINITY=1 -j$(getconf _NPROCESSORS_ONLN) 2>/dev/null >/dev/null) && make PREFIX=$HOME/OpenBlasInstall install) | ||
- git clone https://github.com/torch/distro.git ~/torch --recursive | ||
- 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_${TORCH_LUA_VERSION}=ON | ||
- make && make install | ||
- cd $ROOT_TRAVIS_DIR | ||
- export LD_LIBRARY_PATH=${INSTALL_PREFIX}/lib:$LD_LIBRARY_PATH | ||
- sudo -E $ROOT_TRAVIS_DIR/travis_cuda_install.sh | ||
script: | ||
- ${INSTALL_PREFIX}/bin/luarocks make rocks/cutorch-scm-1.rockspec |