Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
245 commits
Select commit Hold shift + click to select a range
fc2409c
small fix for FFX specification in case the prefix is just 'r'
Remi-Gau Sep 6, 2020
170aa9a
refactor processing pipeline
Remi-Gau Sep 8, 2020
32946c3
update readme and add bids-matlab submodule
Remi-Gau Sep 18, 2020
7a148c3
add manual coregistration tool
Remi-Gau Sep 18, 2020
9f382b7
mh fix
Remi-Gau Sep 18, 2020
20cb472
refactor manual coregistration
Remi-Gau Sep 18, 2020
3d020c9
add copyright
Remi-Gau Sep 18, 2020
29cbd7b
refactor bids_RFX
Remi-Gau Sep 18, 2020
89210f1
mh fix
Remi-Gau Sep 18, 2020
d824043
add tests for setting batch for segmentation and coregistration
Remi-Gau Sep 18, 2020
379b355
mh fix
Remi-Gau Sep 18, 2020
aefb40a
refactor spatial normalization and add test
Remi-Gau Sep 18, 2020
9ecd6b7
add test for getting group level contrasts
Remi-Gau Sep 18, 2020
03a85d9
mh fix
Remi-Gau Sep 18, 2020
613f8dd
create test for STC batch
Remi-Gau Sep 18, 2020
e2e0b2b
small fix
Remi-Gau Sep 18, 2020
0e6b5b1
fix test coregistration
Remi-Gau Sep 18, 2020
81bb4d8
mh fix
Remi-Gau Sep 18, 2020
060fb63
add test getVoxDim
Remi-Gau Sep 18, 2020
ca9e2cd
change travis to download dummy data
Remi-Gau Sep 18, 2020
eb31fba
add test for realign batch
Remi-Gau Sep 18, 2020
e1d1bb9
Merge pull request #86 from cpp-lln-lab/remi-highres_analysis
Remi-Gau Sep 18, 2020
0d030cd
add CI for dead links and markdown linter
Remi-Gau Sep 24, 2020
73be21f
mh fix for the new mh version
Remi-Gau Sep 24, 2020
47e95f6
fix CI
Remi-Gau Sep 24, 2020
b397794
fix CI
Remi-Gau Sep 24, 2020
6a91352
lint markdown
Remi-Gau Sep 24, 2020
348fc13
change all contributors cfg
Remi-Gau Sep 24, 2020
ba351a7
Merge pull request #88 from Remi-Gau/remi-md_lint
Remi-Gau Sep 24, 2020
0e4eece
Update miss_hit.yml
Remi-Gau Sep 24, 2020
543dd01
Update miss_hit.yml
Remi-Gau Sep 24, 2020
3070d8d
Update check_md_links.yml
Remi-Gau Sep 24, 2020
9da7e17
make CI scripts run in parallel
Remi-Gau Sep 24, 2020
c1a45ed
Merge pull request #89 from Remi-Gau/remi-dev
Remi-Gau Sep 24, 2020
0d61a80
fix realign batch
Remi-Gau Sep 26, 2020
7cfb077
datalad openneuro demos
Remi-Gau Sep 26, 2020
4fecb4d
spelling in stc batch
Remi-Gau Sep 26, 2020
9eac40d
small fix
Remi-Gau Sep 26, 2020
02d28d3
mh fix
Remi-Gau Sep 26, 2020
23b55c2
change spm_default to NOT register to the mean functional
Remi-Gau Sep 26, 2020
3f6f884
move spm_my_defaults
Remi-Gau Sep 26, 2020
f3123e3
fix dependency issue that only passed the first run in the rest of th…
Remi-Gau Sep 26, 2020
4e68cd5
fix typo
Remi-Gau Sep 26, 2020
64cc400
fix coregistration batch test
Remi-Gau Sep 26, 2020
9b09405
remove old json
Remi-Gau Sep 26, 2020
375a247
mh fix
Remi-Gau Sep 26, 2020
3522111
fix issue as num2str is not a method of the cfg_dep class
Remi-Gau Sep 26, 2020
05b651e
Merge pull request #92 from Remi-Gau/remi-dev
Remi-Gau Sep 26, 2020
baa7c18
move files
Remi-Gau Sep 26, 2020
a2614cc
split out the doc
Remi-Gau Sep 27, 2020
e038edd
create function to set derivatives dir
Remi-Gau Sep 27, 2020
aec6bed
fix CI
Remi-Gau Sep 27, 2020
84a8498
fix string split join for octave
Remi-Gau Sep 27, 2020
e729391
fix octave strjoin output issue
Remi-Gau Sep 27, 2020
e56c17a
fix FFX and RFX dir tests
Remi-Gau Sep 27, 2020
a3b0e51
make setDerivativesDir set the default jobs dir
Remi-Gau Sep 27, 2020
5a9ffee
make taskName a required input and prevents checkOption from setting …
Remi-Gau Sep 27, 2020
c91d79b
add test for errors to getData
Remi-Gau Sep 27, 2020
483c3ef
mh fix
Remi-Gau Sep 27, 2020
30feb01
Merge pull request #95 from Remi-Gau/remi-dev
Remi-Gau Sep 27, 2020
e438591
fix system cp flags problem on macs
marcobarilari Oct 2, 2020
f2a0e4e
add test for bidsCopyRawFolder
Remi-Gau Oct 5, 2020
2b8ac59
add error output from system func
marcobarilari Oct 5, 2020
f4691cb
Merge remote-tracking branch 'origin/marco_system-raw-copy-error' int…
marcobarilari Oct 5, 2020
f5bb3a0
Merge pull request #105 from marcobarilari/marco_system-raw-copy-error
Remi-Gau Oct 6, 2020
e1be286
create batch to save coregistration matrix
Remi-Gau Oct 18, 2020
b6eaf54
adapt spatial preprocessing to save coregistration matrix
Remi-Gau Oct 18, 2020
cd8111a
fix name of output file for coregistration matrix
Remi-Gau Oct 18, 2020
349c5a3
fix test normalization
Remi-Gau Oct 18, 2020
120e831
create test for save coreg matrix
Remi-Gau Oct 18, 2020
3e044a1
Merge pull request #117 from Remi-Gau/remi-save_coregistration_matrix
Remi-Gau Oct 18, 2020
7fa2b5f
make bidsCopyRawFolder only copy anat and func data
Remi-Gau Oct 19, 2020
853f6e0
create batch for realign and unwarp
Remi-Gau Oct 19, 2020
5ca12e5
refactor set realign batches
Remi-Gau Oct 19, 2020
aa8d96c
update test for realign
Remi-Gau Oct 19, 2020
1e6349e
Merge pull request #118 from Remi-Gau/remi-realign_unwarp
Remi-Gau Oct 19, 2020
606cf74
creates a separate function to handle loading and checking option
Remi-Gau Oct 20, 2020
d6754bf
Add Ceren as contributor
Remi-Gau Oct 20, 2020
a391929
fix tests
Remi-Gau Oct 20, 2020
81505b2
add function to load options
Remi-Gau Oct 20, 2020
e2cb35c
mh fix
Remi-Gau Oct 20, 2020
389f42b
update demos
Remi-Gau Oct 20, 2020
6998a45
let laod and checkoption deal with structures
Remi-Gau Oct 20, 2020
4570441
re add comment in checkOptions
Remi-Gau Oct 20, 2020
ccf4f65
Merge pull request #120 from Remi-Gau/remi-set_options
Remi-Gau Oct 20, 2020
9beccd7
refactor set batch for selecting anat
Remi-Gau Oct 20, 2020
a4799e0
refactor set batch coregistration and use dependency order in pipeline
Remi-Gau Oct 20, 2020
a778fc8
update tests
Remi-Gau Oct 20, 2020
14a09ab
fix test for CI
Remi-Gau Oct 20, 2020
4bee444
Merge pull request #121 from Remi-Gau/remi-refactor_coreg
Remi-Gau Oct 22, 2020
3890b8c
adapt prepocess pipeline to do native space analysis with realign and…
Remi-Gau Oct 22, 2020
26aa812
add design matrices specification to some of the bids model json files
Remi-Gau Oct 22, 2020
d532eb7
fix setDefaults to deal with non-unitary structure
Remi-Gau Oct 22, 2020
9c3460c
fix getPrefix to fetch unwarped images when runnning native space ana…
Remi-Gau Oct 22, 2020
3311be4
fix pipeline for MoAE demo
Remi-Gau Oct 22, 2020
15b94dc
refactor fetching event tsv file
Remi-Gau Oct 22, 2020
f3bff1b
simplify call to dependency in bidsFFX
Remi-Gau Oct 22, 2020
03c28e5
set up another demo with an openneuro dataset
Remi-Gau Oct 22, 2020
79494e1
update tests
Remi-Gau Oct 22, 2020
1209093
update doc and minor changes to other model json
Remi-Gau Oct 22, 2020
7d443f9
update test set coregistration batch
Remi-Gau Oct 22, 2020
b5062ac
mh fix
Remi-Gau Oct 22, 2020
a9a151f
Merge pull request #126 from Remi-Gau/remi-create_unwarp_pipeline
Remi-Gau Oct 22, 2020
405280f
update getFFXdir
Remi-Gau Oct 22, 2020
25321be
remove set MVPA suffix
Remi-Gau Oct 22, 2020
4dc9c33
update getPrefix
Remi-Gau Oct 22, 2020
cc65c4b
update getBoldFilenameForFFX
Remi-Gau Oct 22, 2020
6152126
update checkOptions
Remi-Gau Oct 22, 2020
d98bd90
update convertOnsetTsvToMat
Remi-Gau Oct 22, 2020
41507f1
update creaAndReturnOnsetFile
Remi-Gau Oct 22, 2020
aa2db77
update getRealignParamFile
Remi-Gau Oct 22, 2020
cd49677
update setBatchSmoothing
Remi-Gau Oct 22, 2020
b3dcf44
update setBatchSmoothConImages
Remi-Gau Oct 22, 2020
94ce9ed
update setBatchSubjectLevelGLMSpec
Remi-Gau Oct 22, 2020
603f38f
update specifying contrasts
Remi-Gau Oct 22, 2020
4f22432
update getGrpLevelContrastToCompute
Remi-Gau Oct 22, 2020
dfc13da
update higher level functions
Remi-Gau Oct 22, 2020
af47906
refactor group level analysis functions
Remi-Gau Oct 22, 2020
c71493c
mh fix
Remi-Gau Oct 22, 2020
14e530d
use snake case for the batch filenames
Remi-Gau Oct 22, 2020
2ad3f1c
update remaining functions
Remi-Gau Oct 22, 2020
0026776
update tests
Remi-Gau Oct 22, 2020
d1b2a24
update demos
Remi-Gau Oct 22, 2020
f50351d
add test for setBatchSmoothing
Remi-Gau Oct 22, 2020
070db31
update tests
Remi-Gau Oct 22, 2020
04eba72
mh fix
Remi-Gau Oct 22, 2020
351ccb5
add SPM.mat for test
Remi-Gau Oct 22, 2020
b6938fc
Merge pull request #127 from Remi-Gau/remi-native_denomination
Remi-Gau Oct 22, 2020
113a41e
first rough draft of a QA pipeline using spmup
Remi-Gau Sep 27, 2020
376a1f4
add spmup as submodule
Remi-Gau Oct 21, 2020
ccabacf
set up anat part of the QA
Remi-Gau Oct 21, 2020
851ebcb
impose v7 as format for mat files
Remi-Gau Oct 24, 2020
6cbefd6
modify argument order in inputFileValidation
Remi-Gau Oct 24, 2020
b68e5de
update test inputFileValidation
Remi-Gau Oct 24, 2020
4d396f4
rename inputFileValidation
Remi-Gau Oct 24, 2020
6af388e
small change to getInfo
Remi-Gau Oct 24, 2020
7fa3a22
refactor getBoldFilename
Remi-Gau Oct 24, 2020
5b5bd26
fix tests
Remi-Gau Oct 24, 2020
399f6c4
refactor selecting anat file
Remi-Gau Oct 24, 2020
127a833
fix test for CI
Remi-Gau Oct 24, 2020
468be78
ensure that filenames are returned as string
Remi-Gau Oct 24, 2020
05900e4
update gitignore
Remi-Gau Oct 24, 2020
34af236
add function to get mean image
Remi-Gau Oct 24, 2020
8655be0
add batch to reslice
Remi-Gau Oct 24, 2020
5abeca9
upate preprocessing QA pipeline
Remi-Gau Oct 24, 2020
1374899
update getprefix realign parameters
Remi-Gau Oct 24, 2020
b8e20ab
improve preprocessing QA
Remi-Gau Oct 24, 2020
359bf81
fix some issues when running demo
Remi-Gau Oct 24, 2020
23d71aa
simplify getting realignment param file
Remi-Gau Oct 24, 2020
d6f0673
mh fix
Remi-Gau Oct 24, 2020
8b6f96e
refactor QA pipeline
Remi-Gau Oct 24, 2020
fb57425
add tests
Remi-Gau Oct 24, 2020
4d5c632
update createDataDictionary
Remi-Gau Oct 24, 2020
c3adadf
update test getAnat
Remi-Gau Oct 24, 2020
75e3fe6
update test get mean image
Remi-Gau Oct 24, 2020
2838c42
fix CI
Remi-Gau Oct 24, 2020
9ac5027
Merge pull request #98 from Remi-Gau/remi-preproc_QA
Remi-Gau Oct 24, 2020
0be1b5a
add test set subject GLM
Remi-Gau Oct 24, 2020
0736aed
add draft test for set subject contrast
Remi-Gau Oct 24, 2020
414102e
add some more information to model json
Remi-Gau Oct 24, 2020
389c0d6
Merge pull request #131 from Remi-Gau/remi-unit_tests
Remi-Gau Oct 24, 2020
bf850e9
reorganize files and folders
Remi-Gau Oct 25, 2020
e5a2eb7
Merge pull request #137 from Remi-Gau/dev
Remi-Gau Oct 26, 2020
c1e91c8
initial set up of the doc using sphinx
Remi-Gau Oct 13, 2020
3dec87d
update doc conf
Remi-Gau Oct 13, 2020
726e580
update sphinx config
Remi-Gau Oct 13, 2020
2cb0b65
update doc
Remi-Gau Oct 13, 2020
5128cb8
update README of the docs
Remi-Gau Oct 13, 2020
99a1e63
remove content of the build folder
Remi-Gau Oct 26, 2020
677db83
update gitignore
Remi-Gau Oct 26, 2020
d86ded9
[DOC] add separate doc for each folder
Remi-Gau Oct 26, 2020
73f8f27
Merge pull request #116 from Remi-Gau/remi_doc_with_sphynx
Remi-Gau Oct 26, 2020
781b449
fix some of the help sections
Remi-Gau Oct 26, 2020
64b1d70
Merge pull request #138 from Remi-Gau/remi_doc_with_sphynx
Remi-Gau Oct 26, 2020
a265851
update gitignore
Remi-Gau Oct 27, 2020
3666e84
add function templates
Remi-Gau Oct 28, 2020
41d3717
Rough transfer of most of the doc to sphinx and read the docs
Remi-Gau Oct 28, 2020
89ca2d2
Merge pull request #140 from Remi-Gau/remi_doc_with_sphynx
Remi-Gau Oct 28, 2020
9037da5
Merge pull request #142 from cpp-lln-lab/doc
Remi-Gau Oct 30, 2020
d71d9a0
set up skull stripping workflow
Remi-Gau Oct 30, 2020
f033ab4
mh fix
Remi-Gau Oct 30, 2020
f3b2b5a
move checkOptions to default folder
Remi-Gau Oct 30, 2020
df98e67
fix load and check option
Remi-Gau Oct 30, 2020
84d3c6c
simplify skull stripping batch
Remi-Gau Oct 30, 2020
5ff78d0
move message to prompt in batch creating functions
Remi-Gau Oct 30, 2020
d359dba
change tab size to 2 spaces
Remi-Gau Oct 30, 2020
e3a4aa7
simplify batch for anat mean and mask
Remi-Gau Oct 30, 2020
1d0303d
add test for setBatchSkullStripping
Remi-Gau Oct 30, 2020
09e0382
Merge pull request #143 from Remi-Gau/remi-skull_stripping
Remi-Gau Oct 30, 2020
8ebbf00
add download instructions for demo dataset with fieldmaps
Remi-Gau Oct 25, 2020
0e5ac7f
add basic demo to show how to use fieldmap workflow
Remi-Gau Oct 25, 2020
ca0d663
change copy raw to not filter modalities
Remi-Gau Oct 25, 2020
16bf11f
create rough draft of workflow
Remi-Gau Oct 25, 2020
66b640e
add batches for coreg
Remi-Gau Oct 25, 2020
94a3ffb
small change to getInfo
Remi-Gau Oct 25, 2020
e5cf22b
finish first draft of coregistration of fmap
Remi-Gau Oct 25, 2020
f3af70c
minor changes
Remi-Gau Oct 25, 2020
9498b16
update fmap workflow
Remi-Gau Oct 25, 2020
ade8561
change tab width
Remi-Gau Oct 30, 2020
926af61
make copyRaw deal with modalities
Remi-Gau Oct 30, 2020
134e64e
refactor bidsCopyRaw
Remi-Gau Oct 30, 2020
4c71b0f
mh fix
Remi-Gau Oct 30, 2020
d81b6f3
update function templates
Remi-Gau Oct 30, 2020
a2b4a90
mh fix
Remi-Gau Oct 30, 2020
5389756
remove change log (for now)
Remi-Gau Oct 30, 2020
56ba1f4
update README
Remi-Gau Oct 30, 2020
e068b83
fix bidsCopyRawFolder
Remi-Gau Oct 30, 2020
433daff
rename coregistration batch setting functions
Remi-Gau Oct 30, 2020
4d109c1
fix copyright year
Remi-Gau Oct 30, 2020
f62d760
upate VDM workflow
Remi-Gau Oct 30, 2020
817ee3c
add function for image calculation
Remi-Gau Oct 30, 2020
e879516
remove checkoption duplicate
Remi-Gau Oct 30, 2020
70aa86b
update VDM pipeline
Remi-Gau Oct 30, 2020
519e99c
fix reaLign
Remi-Gau Oct 30, 2020
93754c4
move templates
Remi-Gau Oct 30, 2020
627891f
make VDM wrokflow fetch metadata of associated func file
Remi-Gau Oct 31, 2020
31ed358
create new subfolders
Remi-Gau Oct 31, 2020
4ab0fa6
make realign an unwarp use the VDM files if they are present
Remi-Gau Oct 31, 2020
80637ba
update demo and try to run it in CI
Remi-Gau Oct 31, 2020
2296771
mh fix
Remi-Gau Oct 31, 2020
072fc03
update README
Remi-Gau Oct 31, 2020
9185308
fix test load and check options
Remi-Gau Oct 31, 2020
7bc93f5
update doc README
Remi-Gau Oct 31, 2020
46f0ada
update demo ds001168
Remi-Gau Oct 31, 2020
ab55c3b
update doc README
Remi-Gau Oct 31, 2020
cb6a317
fix CI
Remi-Gau Oct 31, 2020
cc73a92
update doc
Remi-Gau Oct 31, 2020
947f37b
update travis CI
Remi-Gau Oct 31, 2020
e2610cd
update copyright dates
Remi-Gau Oct 31, 2020
84ca082
Merge pull request #132 from Remi-Gau/remi-fieldmp_workflow
Remi-Gau Oct 31, 2020
9e175ed
launch graphic windows and save output to func directory
Remi-Gau Oct 19, 2020
66a8423
change the date format when saving ouput figure
Remi-Gau Oct 20, 2020
b364e05
fix hasty rebase
Remi-Gau Oct 31, 2020
c062bdf
update figure printing
Remi-Gau Oct 31, 2020
4deda58
Merge pull request #119 from Remi-Gau/remi-graph_window
Remi-Gau Oct 31, 2020
3959b97
fix graphic windows set up when in command line mode
Remi-Gau Oct 31, 2020
4a23f71
Merge pull request #148 from Remi-Gau/dev
Remi-Gau Oct 31, 2020
da14a7b
update version.txt
Remi-Gau Oct 31, 2020
0714847
update demo 1168
Remi-Gau Oct 31, 2020
231c164
update demo ds 114
Remi-Gau Oct 31, 2020
637d36e
fix visMotion demo
Remi-Gau Oct 31, 2020
c26a079
mh fix
Remi-Gau Oct 31, 2020
0d5d1db
Merge pull request #149 from Remi-Gau/dev
Remi-Gau Oct 31, 2020
b694db8
fix typo in copyright
Remi-Gau Nov 1, 2020
dc6a5f0
Merge pull request #152 from Remi-Gau/dev
Remi-Gau Nov 1, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"files": [
"README.md"
],
"contributorsSortAlphabetically": true,
"imageSize": 100,
"commit": false,
"contributors": [
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/check_md_links.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Check Markdown links

# checking for any dead links in markdown files

on:
push:
branches:
- master
- dev
pull_request:
branches: '*'

jobs:
markdown-link-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: gaurav-nelson/github-action-markdown-link-check@v1
5 changes: 3 additions & 2 deletions .github/workflows/miss_hit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- master
- dev
pull_request:
branches: '*'

Expand All @@ -27,12 +28,12 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools
pip3 install install miss_hit
pip3 install miss_hit

- name: Miss_hit code quality
run: |
mh_metric . --ci

- name: Miss_hit code style
run: |
mh_style .
mh_style .
25 changes: 23 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,29 @@
*.log
*.html
*.zip
*.ps

options_task-*.json
onsets*_events.mat

# files in the demo folder related to running the demo analysis
demo/*.zip
demo/output/*
demos/MoAE/*.zip
demos/MoAE/output/*
demos/MoAE/derivatives/*

# test folder
tests/sub-01/*
tests/group/*

# ignore content of the build folder of the doc
docs/build/*

# ignore virtual env
cpp_bids_spm/*

# visual studio code stuff
.vscode




6 changes: 6 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[submodule "lib/bids-matlab"]
path = lib/bids-matlab
url = https://github.com/cpp-lln-lab/bids-matlab.git
[submodule "lib/spmup"]
path = lib/spmup
url = https://github.com/CPernet/spmup.git
13 changes: 13 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"parser": "markdown",
"proseWrap": "always",
"tabWidth": 2,
"overrides": [
{
"files": "*.md",
"options": {
"tabWidth": 4
}
}
]
}
26 changes: 26 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# .readthedocs.yml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/source/conf.py
builder: html
fail_on_warning: true

# Build documentation with MkDocs
#mkdocs:
# configuration: mkdocs.yml

# Optionally build your docs in additional formats such as PDF
formats:
- pdf

# Optionally set the version of Python and requirements required to build your docs
python:
version: 3.7
install:
- requirements: docs/requirements.txt
11 changes: 11 additions & 0 deletions .remarkrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"plugins": [
"preset-lint-consistent",
"preset-lint-markdown-style-guide",
"preset-lint-recommended",
["lint-no-duplicate-headings", false],
["lint-list-item-indent", "tab-size"],
["lint-maximum-line-length", true],
["lint-maximum-heading-length", false]
]
}
101 changes: 79 additions & 22 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,47 +2,104 @@
# This will only work on your repo if you have an account on travis and you
# have set it up to run continuous integration on this this repo

# Linux distribution (bionic beaver)
dist: bionic

# Language and version
language: python
python:
- "3.6" # current default Python on Travis CI
language: node_js
node_js:
- "10"

cache:
apt: true # only works with Pro version
apt: true
directories:
- node_modules

# only run the CI for those branches
branches:
only:
- master
- dev

env:
global:
- OCTFLAGS="--no-gui --no-window-system --silent"

before_install:
# TODO maybe this could be refactored as this is not needed to check the
# the markdown linting
install:
# install octave
- travis_retry sudo apt-get -y -qq update
- travis_retry sudo apt-get -y install octave
- travis_retry sudo apt-get -y install liboctave-dev
# install MOX unit
- git clone https://github.com/MOxUnit/MOxUnit.git --depth 1
- cd MOxUnit
- make install
- cd ..
# install MOcov
- git clone https://github.com/MOcov/MOcov.git --depth 1
- cd MOcov
- make install
- cd ..

# install SPM and the relevant patches for octave
- 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

script:
- octave $OCTFLAGS --eval "runTests"
- cat test_report.log | grep 0
# update octave path
- octave $OCTFLAGS --eval "addpath(genpath(fullfile(pwd, 'lib'))); savepath();"
- octave $OCTFLAGS --eval "addpath(genpath(fullfile(pwd, 'src'))); savepath();"
- octave $OCTFLAGS --eval "addpath(fullfile(pwd, 'spm12')); savepath();"

jobs:
include:

#-------------------------------------------------------------------------
# first job
#-------------------------------------------------------------------------
- name: "Unit tests and coverage"

before_script:

# install MOX unit
- git clone https://github.com/MOxUnit/MOxUnit.git --depth 1
- cd MOxUnit
- make install
- cd ..

# install MOcov
- git clone https://github.com/MOcov/MOcov.git --depth 1
- cd MOcov
- make install
- cd ..

# get data
- output_folder='demos/MoAE/output/'
- mkdir $output_folder
- curl http://www.fil.ion.ucl.ac.uk/spm/download/data/MoAEpilot/MoAEpilot.bids.zip --output $output_folder'MoAEpilot.zip'
- unzip $output_folder'MoAEpilot.zip' -d $output_folder

script:
- octave $OCTFLAGS --eval "runTests"
- cat test_report.log | grep 0

# to send the results to codecov to get our code coverage
after_success:
- bash <(curl -s https://codecov.io/bash)

#-------------------------------------------------------------------------
# second job
#-------------------------------------------------------------------------
- name: "Check markdown"

before_script:
# install node.js dependencies
- npm install `cat npm-requirements.txt`

script:
- remark *.md --frail
- remark ./demos/ --frail
- remark ./docs/ --frail
- remark ./tests/ --frail

after_success:
- bash <(curl -s https://codecov.io/bash)
#-------------------------------------------------------------------------
# third job
#-------------------------------------------------------------------------
- name: "Run demo"

if: branch = master

script:
- cd demos/MoAE
- octave $OCTFLAGS --eval "MoAEpilot_run"
93 changes: 0 additions & 93 deletions CHANGELOG.md

This file was deleted.

Loading