Skip to content

Commit f6c6888

Browse files
Merge pull request #295 from guzman-raphael/package-main
Remove toolbox binary from tracking
2 parents ecf487d + 66cb341 commit f6c6888

File tree

3 files changed

+32
-2
lines changed

3 files changed

+32
-2
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ docker-compose.yml
88
matlab.prf
99
win.*
1010
macos.*
11-
*.prj
11+
*.prj
12+
*.mltbx

DataJoint.mltbx

-69.5 KB
Binary file not shown.

LNX-docker-compose.yml

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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
5483
networks:
5584
main:

0 commit comments

Comments
 (0)