Skip to content

Commit

Permalink
Update tests and add compiled toolbox.
Browse files Browse the repository at this point in the history
  • Loading branch information
guzman-raphael committed Sep 22, 2020
1 parent 058227c commit 089051f
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
Binary file modified DataJoint.mltbx
Binary file not shown.
10 changes: 9 additions & 1 deletion LNX-docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,15 @@ services:
- -c
- |
matlab -nodisplay -r "
matlab.addons.toolbox.installToolbox('DataJoint.mltbx');\
websave([tempdir 'GHToolbox.mltbx'],\
['https://github.com/datajoint/GHToolbox' \
'/releases/download/' subsref(webread(['https://api.github.com/repos' \
'/datajoint/GHToolbox' \
'/releases/latest']),\
substruct('.', 'tag_name')) \
'/GHToolbox.mltbx']);\
matlab.addons.toolbox.installToolbox([tempdir 'GHToolbox.mltbx']);\
ghtb.install('DataJoint.mltbx');\
addpath('tests');\
res=run(Main);\
disp(res);\
Expand Down
9 changes: 7 additions & 2 deletions local-docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,13 @@ services:
ports:
- "8888:8888"
user: ${MATLAB_UID}:${MATLAB_GID}
# working_dir: /home/muser/notebooks
working_dir: /src
working_dir: /home/muser/notebooks
command:
- /bin/bash
- -c
- |
ORIG_DIR=$$(pwd)
cd /src
# package into toolbox, and install
matlab -nodisplay -r "
websave([tempdir 'GHToolbox.mltbx'],\
Expand Down Expand Up @@ -79,7 +80,11 @@ services:
'uni', false),\
'.'),\
{'+dj'});\
matlab.addons.toolbox.installToolbox('DataJoint.mltbx');\
cd(tempdir);\
disp(dj.version);\
"
cd "$${ORIG_DIR}"
# Copy preferences
cp /tmp/matlab.prf /home/muser/.matlab/${MATLAB_VERSION}/matlab.prf
# Interactive Jupyter Notebook environment
Expand Down
1 change: 1 addition & 0 deletions tests/Prep.m
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ function init(testCase)
disp('---------------INIT---------------');
clear functions;
addpath([testCase.test_root '/test_schemas']);
dj.set('suppressPrompt', true);

curr_conn = dj.conn(testCase.CONN_INFO_ROOT.host, ...
testCase.CONN_INFO_ROOT.user, testCase.CONN_INFO_ROOT.password,'',true);
Expand Down

0 comments on commit 089051f

Please sign in to comment.