Skip to content

Commit 1530a16

Browse files
authored
Merge pull request #145 from cpp-lln-lab/dev
release candidate v0.1.0
2 parents c5392fd + dc6a5f0 commit 1530a16

File tree

365 files changed

+9778
-4547
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

365 files changed

+9778
-4547
lines changed

.all-contributorsrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"files": [
33
"README.md"
44
],
5+
"contributorsSortAlphabetically": true,
56
"imageSize": 100,
67
"commit": false,
78
"contributors": [
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Check Markdown links
2+
3+
# checking for any dead links in markdown files
4+
5+
on:
6+
push:
7+
branches:
8+
- master
9+
- dev
10+
pull_request:
11+
branches: '*'
12+
13+
jobs:
14+
markdown-link-check:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@master
18+
- uses: gaurav-nelson/github-action-markdown-link-check@v1

.github/workflows/miss_hit.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- master
7+
- dev
78
pull_request:
89
branches: '*'
910

@@ -27,12 +28,12 @@ jobs:
2728
- name: Install dependencies
2829
run: |
2930
python -m pip install --upgrade pip setuptools
30-
pip3 install install miss_hit
31+
pip3 install miss_hit
3132
3233
- name: Miss_hit code quality
3334
run: |
3435
mh_metric . --ci
3536
3637
- name: Miss_hit code style
3738
run: |
38-
mh_style .
39+
mh_style .

.gitignore

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,29 @@
77
*.log
88
*.html
99
*.zip
10+
*.ps
1011

12+
options_task-*.json
13+
onsets*_events.mat
1114

1215
# files in the demo folder related to running the demo analysis
13-
demo/*.zip
14-
demo/output/*
16+
demos/MoAE/*.zip
17+
demos/MoAE/output/*
18+
demos/MoAE/derivatives/*
19+
20+
# test folder
21+
tests/sub-01/*
22+
tests/group/*
23+
24+
# ignore content of the build folder of the doc
25+
docs/build/*
26+
27+
# ignore virtual env
28+
cpp_bids_spm/*
29+
30+
# visual studio code stuff
31+
.vscode
32+
33+
34+
35+

.gitmodules

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[submodule "lib/bids-matlab"]
2+
path = lib/bids-matlab
3+
url = https://github.com/cpp-lln-lab/bids-matlab.git
4+
[submodule "lib/spmup"]
5+
path = lib/spmup
6+
url = https://github.com/CPernet/spmup.git

.prettierrc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"parser": "markdown",
3+
"proseWrap": "always",
4+
"tabWidth": 2,
5+
"overrides": [
6+
{
7+
"files": "*.md",
8+
"options": {
9+
"tabWidth": 4
10+
}
11+
}
12+
]
13+
}

.readthedocs.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# .readthedocs.yml
2+
# Read the Docs configuration file
3+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4+
5+
# Required
6+
version: 2
7+
8+
# Build documentation in the docs/ directory with Sphinx
9+
sphinx:
10+
configuration: docs/source/conf.py
11+
builder: html
12+
fail_on_warning: true
13+
14+
# Build documentation with MkDocs
15+
#mkdocs:
16+
# configuration: mkdocs.yml
17+
18+
# Optionally build your docs in additional formats such as PDF
19+
formats:
20+
- pdf
21+
22+
# Optionally set the version of Python and requirements required to build your docs
23+
python:
24+
version: 3.7
25+
install:
26+
- requirements: docs/requirements.txt

.remarkrc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"plugins": [
3+
"preset-lint-consistent",
4+
"preset-lint-markdown-style-guide",
5+
"preset-lint-recommended",
6+
["lint-no-duplicate-headings", false],
7+
["lint-list-item-indent", "tab-size"],
8+
["lint-maximum-line-length", true],
9+
["lint-maximum-heading-length", false]
10+
]
11+
}

.travis.yml

Lines changed: 79 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,47 +2,104 @@
22
# This will only work on your repo if you have an account on travis and you
33
# have set it up to run continuous integration on this this repo
44

5-
# Linux distribution (bionic beaver)
65
dist: bionic
76

8-
# Language and version
9-
language: python
10-
python:
11-
- "3.6" # current default Python on Travis CI
7+
language: node_js
8+
node_js:
9+
- "10"
1210

1311
cache:
14-
apt: true # only works with Pro version
12+
apt: true
13+
directories:
14+
- node_modules
15+
16+
# only run the CI for those branches
17+
branches:
18+
only:
19+
- master
20+
- dev
1521

1622
env:
1723
global:
1824
- OCTFLAGS="--no-gui --no-window-system --silent"
1925

20-
before_install:
26+
# TODO maybe this could be refactored as this is not needed to check the
27+
# the markdown linting
28+
install:
2129
# install octave
2230
- travis_retry sudo apt-get -y -qq update
2331
- travis_retry sudo apt-get -y install octave
2432
- travis_retry sudo apt-get -y install liboctave-dev
25-
# install MOX unit
26-
- git clone https://github.com/MOxUnit/MOxUnit.git --depth 1
27-
- cd MOxUnit
28-
- make install
29-
- cd ..
30-
# install MOcov
31-
- git clone https://github.com/MOcov/MOcov.git --depth 1
32-
- cd MOcov
33-
- make install
34-
- cd ..
33+
3534
# install SPM and the relevant patches for octave
3635
- git clone https://github.com/spm/spm12.git --depth 1
3736
- make -C spm12/src PLATFORM=octave distclean
3837
- make -C spm12/src PLATFORM=octave
3938
- make -C spm12/src PLATFORM=octave install
4039

41-
script:
42-
- octave $OCTFLAGS --eval "runTests"
43-
- cat test_report.log | grep 0
40+
# update octave path
41+
- octave $OCTFLAGS --eval "addpath(genpath(fullfile(pwd, 'lib'))); savepath();"
42+
- octave $OCTFLAGS --eval "addpath(genpath(fullfile(pwd, 'src'))); savepath();"
43+
- octave $OCTFLAGS --eval "addpath(fullfile(pwd, 'spm12')); savepath();"
44+
45+
jobs:
46+
include:
47+
48+
#-------------------------------------------------------------------------
49+
# first job
50+
#-------------------------------------------------------------------------
51+
- name: "Unit tests and coverage"
52+
53+
before_script:
54+
55+
# install MOX unit
56+
- git clone https://github.com/MOxUnit/MOxUnit.git --depth 1
57+
- cd MOxUnit
58+
- make install
59+
- cd ..
60+
61+
# install MOcov
62+
- git clone https://github.com/MOcov/MOcov.git --depth 1
63+
- cd MOcov
64+
- make install
65+
- cd ..
66+
67+
# get data
68+
- output_folder='demos/MoAE/output/'
69+
- mkdir $output_folder
70+
- curl http://www.fil.ion.ucl.ac.uk/spm/download/data/MoAEpilot/MoAEpilot.bids.zip --output $output_folder'MoAEpilot.zip'
71+
- unzip $output_folder'MoAEpilot.zip' -d $output_folder
72+
73+
script:
74+
- octave $OCTFLAGS --eval "runTests"
75+
- cat test_report.log | grep 0
76+
77+
# to send the results to codecov to get our code coverage
78+
after_success:
79+
- bash <(curl -s https://codecov.io/bash)
80+
81+
#-------------------------------------------------------------------------
82+
# second job
83+
#-------------------------------------------------------------------------
84+
- name: "Check markdown"
85+
86+
before_script:
87+
# install node.js dependencies
88+
- npm install `cat npm-requirements.txt`
89+
90+
script:
91+
- remark *.md --frail
92+
- remark ./demos/ --frail
93+
- remark ./docs/ --frail
94+
- remark ./tests/ --frail
4495

45-
after_success:
46-
- bash <(curl -s https://codecov.io/bash)
96+
#-------------------------------------------------------------------------
97+
# third job
98+
#-------------------------------------------------------------------------
99+
- name: "Run demo"
47100

101+
if: branch = master
48102

103+
script:
104+
- cd demos/MoAE
105+
- octave $OCTFLAGS --eval "MoAEpilot_run"

CHANGELOG.md

Lines changed: 0 additions & 93 deletions
This file was deleted.

0 commit comments

Comments
 (0)