diff --git a/.travis.yml b/.travis.yml index 1aee0e77..526353bf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,32 +1,39 @@ # Travis CI (https://travis-ci.org/) +# 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: c -dist: bionic # based on bionic beaver ubuntu distribution cache: apt: true # only works with Pro version env: - global: # define environment variables for bash + global: # Define environment variables for bash - OCTFLAGS="--no-gui --no-window-system --silent" before_install: - travis_retry sudo apt-get -y -qq update - # install octave + # Install octave - travis_retry sudo apt-get -y install octave - travis_retry sudo apt-get -y install liboctave-dev - # install javascript + # Install javascript node and node package manager necessary to run the validator - travis_retry sudo apt-get -y install nodejs - travis_retry sudo apt-get -y install npm - # install miss_hit linter - - cd .. && git clone https://github.com/florianschanda/miss_hit.git && export PATH=$PATH:`pwd`/miss_hit && cd CPP_BIDS - + # Install BIDS-Validator + - sudo npm install -g bids-validator + # Install miss_hit linter + - pip3 install miss_hit install: # make octave file the JSONio submodule - cd lib/JSONio; mkoctfile --mex jsonread.c jsmn.c -DJSMN_PARENT_LINKS; cd ../.. - octave $OCTFLAGS --eval "addpath (pwd); savepath ();" - # Install BIDS-Validator - - sudo npm install -g bids-validator before_script: # Add to src functions to path @@ -36,11 +43,9 @@ before_script: jobs: include: - - stage: "BIDS validator" - name: "Create and check dataset" + - name: "BIDS validator: create and check dataset" script: octave $OCTFLAGS --eval "test_makeRawDataset" && bids-validator `pwd`/output/rawdata/ --ignoreNiftiHeaders - - stage: "Linter" - name: "miss_hit" - script: cd .. && mh_style `pwd` - - \ No newline at end of file + - name: "miss_hit: checking code quality" + script: mh_metric . --ci + - name: "miss_hit: checking code style" + script: mh_style . diff --git a/README.md b/README.md index 68c14ed4..f136a2da 100644 --- a/README.md +++ b/README.md @@ -76,6 +76,13 @@ Feel free to open issues to report a bug and ask for improvements. Here are the naming templates used. +- Behavior + +`sub-