Skip to content

Commit

Permalink
Added test to travis
Browse files Browse the repository at this point in the history
  • Loading branch information
jpuigcerver committed Oct 20, 2016
1 parent 1d47adc commit 5d0b80e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,14 @@ branches:

env:
- TORCH_LUA_VERSION="LUAJIT21"
- TORCH_LUA_VERSION="LUA51"
- TORCH_LUA_VERSION="LUA52"

before_install:
- source travis/install_torch.inc.sh

script:
- which th luarocks || exit 1;
- th test/util/math.lua
- th test/util/table.lua
- travis/run_tests.sh

notifications:
email:
Expand Down
14 changes: 14 additions & 0 deletions travis/run_tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash
set +e; # We want to run all tests, even if some fail.

# This script should run from the main Laia directory, cd to there.
EXPECTED_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)";
cd "$EXPECTED_DIR";

# th is required, exit if not present.
which th || exit 1;

# ADD YOUR TESTS HERE
th test/nn/ImageColumnSequence.lua;
th test/util/math.lua;
th test/util/table.lua;

0 comments on commit 5d0b80e

Please sign in to comment.