Unit tests and coverage
Miss_hit linter
├── .git
│ ├── COMMIT_EDITMSG
│ ├── FETCH_HEAD
│ ├── HEAD
│ ├── ORIG_HEAD
│ ├── branches
│ ├── config
│ ├── description
│ ├── hooks
│ │ ├── pre-commit.sample
│ │ └── pre-push.sample
│ ├── ...
│ └── ...
├── .github # where you put anything github related
│ └── workflows # where you define your github actions
│ └── moxunit.yml # a yaml file that defines a github action
├── lib # where you put the code from external libraries (mathworks website or other github repositories)
│ └── README.md
├── src # where you put your code
│ ├── README.md
│ └── miss_hit.cfg
├── tests # where you put your unit tests
| ├── README.md
| └── miss_hit.cfg
├── .travis.yml # where you define the continuous integration done by Travis
├── LICENSE
├── README.md
├── environment.yml # a simple environment for anything python related in this repo
├── miss_hit.cfg # configuration file for the matlab miss hit linter
└── initEnv.m # a .m file to set up your project (adds the right folder to the path)
# create env
conda create --name crc_nighres python=3.7
# activate it
conda activate crc_nighres
# deactivate it
conda deactivate
# export package list in the env into a YAML file
conda env export > environment.yml
# create env from YAML file
conda env create -f environment.yml
cd fullpath_to_directory_where_to_install
# use git to download the code
git clone https://github.com/cpp-lln-lab/CPP_BIDS.git
# move into the folder you have just created
cd CPP_BIDS
# add the src folder to the matlab path and save the path
matlab -nojvm -nosplash -r "addpath(fullfile(pwd, 'src')); savepath ();"
Then get the latest commit:
# from the directory where you downloaded the code
git pull origin master
To work with a specific version, create a branch at a specific version tag number
# creating and checking out a branch that will be called version1 at the version tag v0.0.1
git checkout -b version1 v0.0.1