Skip to content

Commit 0a12f46

Browse files
authored
BLD: use multiline statements (#220)
* BLD: use multiline statements * DOC: update README with new badges
1 parent c408cbe commit 0a12f46

2 files changed

Lines changed: 48 additions & 17 deletions

File tree

‎.github/workflows/CI_matlab.yml‎

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ jobs:
5151
- name: Install CoSMoMVPA
5252
uses: matlab-actions/run-command@v2
5353
with:
54-
command: cd('mvpa'); cosmo_set_path(); cd ..; savepath(); exit(0);
54+
command: |
55+
cd('mvpa')
56+
cosmo_set_path()
57+
savepath()
5558
5659
- name: Download MOxUnit, MOcov, MOdox
5760
run: |
@@ -62,14 +65,25 @@ jobs:
6265
- name: Install MOxUnit, MOcov, MOdox
6366
uses: matlab-actions/run-command@v2
6467
with:
65-
command: origin=pwd(); disp(pwd); dir; pp=[origin '/']; cd([pp 'MOxUnit/MOxUnit']); moxunit_set_path(); cd([pp 'MOcov/MOcov']); addpath(pwd); cd([pp 'MOdox/MOdox']); addpath(pwd); savepath(); disp('Path is now'); disp(path); cd(origin);
66-
67-
# use matlab-actions/setup-matlab to run a matlab command
68-
# https://github.com/matlab-actions/setup-matlab
68+
command: |
69+
origin=pwd()
70+
disp('Current working directory and contents:')
71+
disp(origin)
72+
dir
73+
prefix=[origin '/']
74+
cd([prefix 'MOxUnit/MOxUnit']); moxunit_set_path()
75+
cd([prefix 'MOcov/MOcov']); addpath(pwd)
76+
cd([prefix 'MOdox/MOdox']); addpath(pwd)
77+
savepath()
78+
disp('Path is now')
79+
disp(path)
80+
6981
- name: Run tests
7082
uses: matlab-actions/run-command@v2
7183
with:
72-
command: result=cosmo_run_tests('-verbose', '-cover', 'mvpa', '-with_coverage', '-cover_xml_file', 'coverage.xml'); exit(~result);
84+
command: |
85+
result=cosmo_run_tests('-verbose', '-cover', 'mvpa', '-with_coverage', '-cover_xml_file', 'coverage.xml')
86+
exit(~result);
7387
7488
- name: Code coverage
7589
uses: codecov/codecov-action@v5

‎README.rst‎

Lines changed: 28 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,22 @@
1-
CoSMoMVPA |build-status| |coverage-status|
2-
==========================================
1+
CoSMoMVPA |matlab-build-status| |octave-build-status| |coverage-status|
2+
=======================================================================
3+
4+
.. |octave-build-status|
5+
image:: https://github.com/CoSMoMVPA/CoSMoMVPA/actions/workflows/CI_octave.yml/badge.svg
6+
:target: https://github.com/CoSMoMVPA/CoSMoMVPA/actions/workflows/CI_octave.yml
7+
:alt: CI octave
8+
9+
10+
.. |matlab-build-status|
11+
image:: https://github.com/CoSMoMVPA/CoSMoMVPA/actions/workflows/CI_matlab.yml/badge.svg
12+
:target: https://github.com/CoSMoMVPA/CoSMoMVPA/actions/workflows/CI_matlab.yml
13+
:alt: CI matlab
314
4-
.. |build-status|
5-
image:: https://secure.travis-ci.org/CoSMoMVPA/CoSMoMVPA.png
6-
?branch=master
7-
:target: http://travis-ci.org/CoSMoMVPA/CoSMoMVPA
8-
:alt: CoSMoMVPA travis-ci build status
915
1016
.. |coverage-status|
11-
image:: https://coveralls.io/repos/github/CoSMoMVPA/CoSMoMVPA/badge.svg
12-
?branch=master
13-
:target: https://coveralls.io/github/CoSMoMVPA/CoSMoMVPA?branch=master
14-
:alt: CoSMoMVPA coveralls.io coverage status
17+
image:: https://codecov.io/gh/CoSMoMVPA/CoSMoMVPA/graph/badge.svg?token=50isWwWECM
18+
:target: https://codecov.io/gh/CoSMoMVPA/CoSMoMVPA
19+
:alt: CoSMoMVPA codecov.io coverage status
1520
1621
1722
A lightweight multi-modal, multi-variate pattern analysis (MVPA) toolbox for cognitive neuroscience in Matlab / Octave.
@@ -20,4 +25,16 @@ Website: http://www.cosmomvpa.org
2025

2126
git repository: http://github.com/CoSMoMVPA
2227

28+
Article: http://dx.doi.org/10.3389/fninf.2016.00027
29+
30+
Oosterhof, N. N., Connolly, A. C., and Haxby, J. V. (2016). CoSMoMVPA: multi-modal multivariate pattern analysis of neuroimaging data in Matlab / GNU Octave. Frontiers in Neuroinformatics, doi: 10.3389/fninf.2016.00027.
31+
32+
BibTeX::
2333

34+
@article{OCH16,
35+
author = {Oosterhof, Nikolaas N and Connolly, Andrew C and Haxby, James V},
36+
title = {{CoSMoMVPA: multi-modal multivariate pattern analysis of neuroimaging data in Matlab / GNU Octave}},
37+
journal = {Frontiers in Neuroinformatics},
38+
doi = {10.3389/fninf.2016.00027},
39+
year = {2016}
40+
}

0 commit comments

Comments
 (0)