File tree 3 files changed +5
-3
lines changed
3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 5
5
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
6
6
cp redis_.mex ../inst/redis_.mex
7
7
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
+
8
12
test :
9
13
echo " YES" | octave-cli --eval ' quit(or(0, mUnittest("test_redis")))'
10
14
Original file line number Diff line number Diff line change 3
3
OK = @(x ) strcmp(' OK' , x );
4
4
5
5
%% testing redis() class
6
- setup
7
6
addpath(' ../inst/' )
8
- addpath(' ../inst/private' )
9
7
r = redis(' hostname' , ' redis' );
10
8
% test basics
11
9
assert(strcmp(' PONG' ,r .ping()),
Original file line number Diff line number Diff line change 11
11
%% setup for octave follows here
12
12
if isunix
13
13
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 ' ])
15
15
catch
16
16
error(' something went wrong\n Make sure you'' ve installes octave dev tools and hiredis' )
17
17
end % try
You can’t perform that action at this time.
0 commit comments