Skip to content

Commit

Permalink
Makes checking build dependencies a reusable script
Browse files Browse the repository at this point in the history
  • Loading branch information
netj committed Jan 23, 2017
1 parent e13671f commit f9cc66a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,8 @@ before_install:
install:
- export CXX="g++-4.8" CC="gcc-4.8"
# skip preparing dependencies if they're cached
- \[[ -e lib/gtest/libgtest.a && \
-e lib/gtest-1.7.0/include/gtest/gtest.h && \
-d lib/tclap/include/tclap && \
-d lib/numactl/include && \
true ]] || make dep
- lib/has-all-dep.sh || make dep
- make
script: LD_LIBRARY_PATH=`pwd`/lib/numactl/lib make test
script:
- export LD_LIBRARY_PATH="$PWD"/lib/numactl/lib
- make test
14 changes: 14 additions & 0 deletions lib/has-all-dep.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env bash
set -euo pipefail

test -e lib/gtest/libgtest.a
test -e lib/gtest-1.7.0/include/gtest/gtest.h

test -d lib/tclap/include/tclap

test -d lib/numactl/include

test -d lib/zeromq/include
test -e lib/zmq/zmq.hpp

test -d lib/msgpack/include

0 comments on commit f9cc66a

Please sign in to comment.