Skip to content

Commit

Permalink
Added ability to skip tests on package and install
Browse files Browse the repository at this point in the history
  • Loading branch information
cafarm committed Jul 3, 2015
1 parent 1103f9c commit 3bbfcc0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
8 changes: 6 additions & 2 deletions install.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
function install()
package();
function install(skipTests)
if nargin < 1
skipTests = false;
end

package(skipTests);
root = fileparts(mfilename('fullpath'));
matlab.apputil.install(fullfile(root, 'target', 'Symphony.mlappinstall'));
end
Expand Down
10 changes: 8 additions & 2 deletions package.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
function package()
test();
function package(skipTests)
if nargin < 1
skipTests = false;
end

if ~skipTests
test();
end
root = fileparts(mfilename('fullpath'));
matlab.apputil.package(fullfile(root, 'symphony.prj'));
end
Expand Down

0 comments on commit 3bbfcc0

Please sign in to comment.