Skip to content

Commit

Permalink
rename dev to tools
Browse files Browse the repository at this point in the history
  • Loading branch information
ehennestad committed Oct 28, 2024
1 parent e0731f6 commit ab574a0
Show file tree
Hide file tree
Showing 28 changed files with 12 additions and 13 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: Run tests
uses: matlab-actions/run-command@v2
with:
command: addpath(genpath("dev")), testToolbox('ReportSubdirectory',"${{ matrix.MATLABVersion }}")
command: addpath(genpath("tools")), testToolbox('ReportSubdirectory',"${{ matrix.MATLABVersion }}")

# Upload code coverage information to Codecov
- name: Upload code coverage report to Codecov (https://app.codecov.io/gh/openMetadataInitiative/openMINDS_MATLAB)
Expand Down Expand Up @@ -80,7 +80,7 @@ jobs:
- name: Generate tested with badge
uses: matlab-actions/run-command@v2
with:
command: addpath(genpath("dev")), createTestedWithBadgeforToolbox("${{ github.ref_name }}")
command: addpath(genpath("tools")), createTestedWithBadgeforToolbox("${{ github.ref_name }}")

# Publish test results from all the releases
- name: Publish Test Results
Expand All @@ -93,7 +93,7 @@ jobs:
- name: Package Toolbox
uses: matlab-actions/run-command@v2
with:
command: addpath(genpath("dev")), packageToolbox("specific","${{ github.ref_name }}")
command: addpath(genpath("tools")), packageToolbox("specific","${{ github.ref_name }}")

# Define the versionNumber using underscores, as this is used in the MLTBX
- name: Set version number
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
uses: matlab-actions/run-command@v2
if: always()
with:
command: addpath(genpath("dev")),codecheckToolbox()
command: addpath(genpath("tools")),codecheckToolbox()

# Upload code issues report
- name: Upload SARIF file
Expand All @@ -49,7 +49,7 @@ jobs:
uses: matlab-actions/run-command@v2
if: always()
with:
command: addpath(genpath("dev")), testToolbox()
command: addpath(genpath("tools")), testToolbox()

# Commit the JSON for the badge for the issues and tests
- name: commit code issues badge JSON
Expand Down
4 changes: 0 additions & 4 deletions dev/hooks/pre-commit

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ function codespellToolbox()
matbox.tasks.codespellToolbox(codeDirectory, ...
"RequireCodespellPassing", true, ...
"Skip", "./schemas/**", ...
"IgnoreFilePath", fullfile(projectRootDirectory, 'dev', '.codespell_ignore'))
"IgnoreFilePath", fullfile(projectRootDirectory, 'tools', '.codespell_ignore'))
end
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
% Assumes project root directory is 3 levels up from script location
rootFolder = fileparts(fileparts(scriptFolder));
L = dir(rootFolder);
assert(all(contains( {'code', 'dev'}, {L.name})), ...
assert(all(contains( {'code', 'tools'}, {L.name})), ...
'Expected project root directory to contain "code" and "tools" folder.');
end
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions tools/hooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
# Run MATLAB script before committing

matlab -batch "try; run('tools/hooks/pre_commit.m'); catch e; disp(getReport(e)); exit(1); end; exit(0);"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion dev/tasks/testToolbox.m → tools/tasks/testToolbox.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ function testToolbox(varargin)
matbox.tasks.testToolbox(...
projectRootDirectory, ...
"CreateBadge", true, ...
"ToolsFolderName", 'dev', ...
varargin{:} ...
)
end
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion dev/tests/testDocLinks.m → tools/tests/testDocLinks.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
addpath( fullfile(projectDirectory, 'code', 'internal') );
openminds.startup()

testDirectoryPath = fullfile(projectDirectory, 'dev', 'tests');
testDirectoryPath = fullfile(projectDirectory, 'tools', 'tests');
addpath(genpath( testDirectoryPath ));

testCase = testReadTheDocLinks();
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit ab574a0

Please sign in to comment.