diff --git a/.github/workflows/miss_hit.yml b/.github/workflows/miss_hit.yml index d4cb7ae8..177cbb4b 100644 --- a/.github/workflows/miss_hit.yml +++ b/.github/workflows/miss_hit.yml @@ -28,12 +28,14 @@ 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 style + run: | + mh_style . - name: Miss_hit code quality run: | mh_metric . --ci - - name: Miss_hit code style - run: | - mh_style . + diff --git a/.travis.yml b/.travis.yml index 27fca763..eae4f6e3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,6 +9,11 @@ env: global: - OCTFLAGS="--no-gui --no-window-system --silent" +branches: + only: # only run the CI for those branches + - master + - dev + before_install: - travis_retry sudo apt-get -y -qq update - travis_retry sudo apt-get -y install octave @@ -26,11 +31,15 @@ install: # Install BIDS-Validator - sudo npm install -g bids-validator -before_script: - # Change current directory - - cd tests - # Download BIDS-compatible datasets - - travis_retry git clone git://github.com/bids-standard/bids-examples.git --depth 1 +jobs: + include: + - name: "Run tests" + + before_script: + # Change current directory + - cd tests + # Download BIDS-compatible datasets + - travis_retry git clone git://github.com/bids-standard/bids-examples.git --depth 1 -script: - - octave $OCTFLAGS --eval "results = bids_runtests; assert(all(~[results.Failed]))" + script: + - octave $OCTFLAGS --eval "results = bids_runtests; assert(all(~[results.Failed]))" diff --git a/README.md b/README.md index b4092a6d..e347769a 100644 --- a/README.md +++ b/README.md @@ -93,7 +93,7 @@ mh_metric . --ci ``` The code style and quality is also checked during the -[continuous integration](./.travis.yml). +[continuous integration](.github/workflows/miss_hit.yml). For more information about the miss_hit see its [documentation](https://florianschanda.github.io/miss_hit/). diff --git a/tests/miss_hit.cfg b/tests/miss_hit.cfg index 7021fcde..f44c4096 100644 --- a/tests/miss_hit.cfg +++ b/tests/miss_hit.cfg @@ -1,2 +1,2 @@ # style guide (https://florianschanda.github.io/miss_hit/style_checker.html) -exclude_dir: "bids-examples" +# exclude_dir: "bids-examples"