@@ -39,9 +39,38 @@ services:
3939 - /bin/bash
4040 - -c
4141 - |
42+ export ORIG_DIR=$$(pwd)
4243 mkdir ~/Documents
44+ cd /src
45+ # package into toolbox, and install
4346 matlab -nodisplay -r "
47+ websave([tempdir 'GHToolbox.mltbx'],\
48+ ['https://github.com/datajoint/GHToolbox' \
49+ '/releases/download/' subsref(webread(['https://api.github.com/repos' \
50+ '/datajoint/GHToolbox' \
51+ '/releases/latest']),\
52+ substruct('.', 'tag_name')) \
53+ '/GHToolbox.mltbx']);\
54+ matlab.addons.toolbox.installToolbox([tempdir 'GHToolbox.mltbx']);\
55+ fid = fopen('README.md', 'r');\
56+ docs = fread(fid, '*char')';\
57+ fclose(fid);\
58+ ghtb.package('DataJoint',\
59+ 'Raphael Guzman',\
60+ 61+ ['Scientific workflow management framework built on top of a ' \
62+ 'relational database.'],\
63+ docs,\
64+ {'.vscode', '.git', '*.env', '.gitignore', '.travis.yml', 'tests',\
65+ 'docs-parts', 'mym', 'erd.m', '*docker-compose.yml', 'LICENSE.txt',\
66+ 'matlab.prf', 'package.m', 'README.md'},\
67+ @() strjoin(arrayfun(@(x) num2str(x),\
68+ cell2mat(struct2cell(dj.version)),\
69+ 'uni', false),\
70+ '.'),\
71+ {'+dj'});\
4472 matlab.addons.toolbox.installToolbox('DataJoint.mltbx');\
73+ cd(getenv('ORIG_DIR'));\
4574 addpath('tests');\
4675 res=run(Main);\
4776 disp(res);\
@@ -50,6 +79,6 @@ services:
5079 mac_address : $MATLAB_HOSTID
5180 volumes :
5281 - ./tests:/main/tests
53- - ./DataJoint.mltbx:/main/DataJoint.mltbx
82+ - .:/src
5483networks :
5584 main:
0 commit comments