Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
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
12 changes: 12 additions & 0 deletions .github/workflows/check_md_links.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Check Markdown links

# checking for any dead links in markdown files

on: push

jobs:
markdown-link-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: gaurav-nelson/github-action-markdown-link-check@v1
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
}
}
]
}
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]
]
}
89 changes: 57 additions & 32 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,42 +12,67 @@ python:

cache:
apt: true # only works with Pro version
directories:
- node_modules # NPM packages for the remark markdown linter

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

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

before_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
# get data
- mkdir demo/output
- curl http://www.fil.ion.ucl.ac.uk/spm/download/data/MoAEpilot/MoAEpilot.bids.zip --output demo/output/MoAEpilot.zip
- unzip demo/output/MoAEpilot.zip -d demo/output/


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

after_success:
- bash <(curl -s https://codecov.io/bash)
jobs:

include:

# naming the Tests stage
- stage: "Unit tests and coverage"
# names the first job
name: "Unit tests and coverage"

before_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
# get data
- mkdir demo/output
- curl http://www.fil.ion.ucl.ac.uk/spm/download/data/MoAEpilot/MoAEpilot.bids.zip --output demo/output/MoAEpilot.zip
- unzip demo/output/MoAEpilot.zip -d demo/output/

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)

# naming the Linter stage
- stage: Markdown linter
name: "Check markdown"
language: node_js
node_js:
- "10"
before_script:
- npm install `cat npm-requirements.txt`
script:
- remark . --frail
195 changes: 140 additions & 55 deletions CHANGELOG.md

Large diffs are not rendered by default.

Loading