Skip to content

Commit

Permalink
update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi-Gau committed Nov 7, 2020
1 parent e2a29b4 commit 926b97f
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 13 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/miss_hit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
23 changes: 16 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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]))"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/).

Expand Down
2 changes: 1 addition & 1 deletion tests/miss_hit.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# style guide (https://florianschanda.github.io/miss_hit/style_checker.html)
exclude_dir: "bids-examples"
# exclude_dir: "bids-examples"

0 comments on commit 926b97f

Please sign in to comment.