Skip to content

Commit 615d5d9

Browse files
author
Markus Bergholz
committed
fix make and setup
1 parent 828b849 commit 615d5d9

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

mex/Makefile

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ build:
55
gcc -fPIC -std=c++11 -I /usr/include/octave-${octave_version}/octave/ -lm -I /usr/include/hiredis/ -lhiredis -shared -O2 -pedantic redis_.cpp -o redis_.mex
66
cp redis_.mex ../inst/redis_.mex
77

8+
gitlab_build:
9+
echo "using ${octave_version}"
10+
mkoctfile -lhiredis -I/usr/include/hiredis --mex -fPIC -O3 -pedantic -std=c++11 -g redis_.cpp -o redis_.mex -o ../inst/redis_.mex
11+
812
test:
913
echo "YES" | octave-cli --eval 'quit(or(0, mUnittest("test_redis")))'
1014

mex/gitlabci.m

-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
OK = @(x) strcmp('OK', x);
44

55
%% testing redis() class
6-
setup
76
addpath('../inst/')
8-
addpath('../inst/private')
97
r = redis('hostname', 'redis');
108
% test basics
119
assert(strcmp('PONG',r.ping()),

mex/setup.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
%% setup for octave follows here
1212
if isunix
1313
try
14-
eval(['mkoctfile -lhiredis -I' LIBPATH ' --mex -fPIC -O3 -pedantic -std=c++11 -g redis_.cpp -o redis_.mex -o ../inst/redis_.mex'])
14+
eval(['mkoctfile -lhiredis -I'LIBPATH ' --mex -fPIC -O3 -pedantic -std=c++11 -g redis_.cpp -o redis_.mex -o ../inst/redis_.mex'])
1515
catch
1616
error('something went wrong\n Make sure you''ve installes octave dev tools and hiredis')
1717
end%try

0 commit comments

Comments
 (0)