generated from cpp-lln-lab/template_matlab_analysis
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from cpp-lln-lab/update_bids_matlab
[ENH] Update bids matlab
- Loading branch information
Showing
32 changed files
with
557 additions
and
190 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,15 +6,12 @@ on: | |
- master | ||
- main | ||
- dev | ||
pull_request: | ||
branches: '*' | ||
|
||
env: | ||
OCTFLAGS: --no-gui --no-window-system --silent | ||
pull_request: | ||
branches: ['*'] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
|
@@ -24,37 +21,36 @@ jobs: | |
sudo apt-get -y -qq update | ||
sudo apt-get -y install octave liboctave-dev | ||
- name: Clone spm_2_bids | ||
- name: Clone spm_2_bids | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
fetch-depth: 2 | ||
|
||
- name: Install SPM | ||
run: | | ||
git clone https://github.com/spm/spm12.git --depth 1 | ||
make -C spm12/src PLATFORM=octave distclean | ||
make -C spm12/src PLATFORM=octave | ||
make -C spm12/src PLATFORM=octave install | ||
octave $OCTFLAGS --eval "addpath(fullfile(pwd, 'spm12')); savepath();" | ||
- name: Install Moxunit and MOcov | ||
- name: get bids-matlab and JSONio | ||
run: | | ||
git clone https://github.com/MOxUnit/MOxUnit.git --depth 1 | ||
make -C MOxUnit install | ||
git clone https://github.com/MOcov/MOcov.git --depth 1 | ||
make -C MOcov install | ||
- name: get bids-matlab and set up paths | ||
run: | | ||
make install_dev | ||
octave $OCTFLAGS --eval "init_env; savepath();" | ||
- name: Run tests | ||
run: | | ||
octave $OCTFLAGS --eval "run_tests" | ||
cat test_report.log | grep 0 | ||
bash <(curl -s https://codecov.io/bash) | ||
make install_dev_octave | ||
- name: MOxUnit Action | ||
uses: joergbrech/[email protected] | ||
with: | ||
tests: tests # files or directories containing the MOxUnit test cases | ||
src: src # directories to be added to path before running the tests. | ||
ext: tests/utils lib/bids-matlab lib/JSONio # External resources to add to the search put (excluded from coverage) | ||
# data: # Directory for test data | ||
with_coverage: true | ||
cover_xml_file: coverage.xml | ||
|
||
- name: Upload coverage | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: coverage_file | ||
path: coverage.xml | ||
|
||
- name: Code coverage | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
file: coverage.xml # optional | ||
flags: unittests # optional | ||
name: codecov-umbrella # optional | ||
fail_ci_if_error: true # optional (default = false) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,14 @@ | ||
install_dev: | ||
git clone https://github.com/bids-standard/bids-matlab.git lib/bids-matlab | ||
cd lib/bids-matlab && git checkout dev | ||
git clone https://github.com/gllmflndn/JSONio.git --depth 1 lib/JSONio | ||
|
||
install_dev_octave: | ||
git clone https://github.com/bids-standard/bids-matlab.git lib/bids-matlab | ||
cd lib/bids-matlab && git checkout dev | ||
git clone https://github.com/gllmflndn/JSONio.git --depth 1 lib/JSONio | ||
cd lib/JSONio && mkoctfile --mex jsonread.c jsmn.c -DJSMN_PARENT_LINKS | ||
|
||
clean: | ||
rm -rf lib/bids-matlab | ||
rm -rf lib/bids-matlab | ||
rm -rf lib/JSONio |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
octave | ||
liboctave-dev | ||
gnuplot | ||
ghostscript | ||
tree |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
dependencies: | ||
- octave_kernel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
cd ${HOME} | ||
|
||
octave --no-gui --no-window-system --silent --eval "addpath (getenv (\"HOME\")); savepath ();" | ||
octave --no-gui --no-window-system --silent --eval "addpath (fullfile (getenv (\"HOME\"), \"+bids\")); savepath ();" | ||
|
||
git clone git://github.com/gllmflndn/JSONio.git --depth 1 | ||
cd JSONio; mkoctfile --mex jsonread.c jsmn.c -DJSMN_PARENT_LINKS; cd .. | ||
|
||
octave --no-gui --no-window-system --silent --eval "addpath (fullfile (getenv (\"HOME\"), \"JSONio\")); savepath ();" | ||
|
||
cd ${HOME}/examples |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Sphinx | ||
sphinxcontrib-matlabdomain | ||
sphinxcontrib-napoleon | ||
sphinx_rtd_theme | ||
sphinx_rtd_theme |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.ipynb_checkpoints |
Oops, something went wrong.