-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
|
||
#>>>> https://stackoverflow.com/questions/53382383/makefile-cant-use-conda-activate | ||
# Need to specify bash in order for conda activate to work. | ||
SHELL=/bin/bash | ||
# Note that the extra activate is needed to ensure that the activate floats env to the front of PATH | ||
CONDA_ACTIVATE=source $$(conda info --base)/etc/profile.d/conda.sh ; conda activate ; conda activate | ||
# <<<< | ||
|
||
install_test: | ||
#conda install --channel=conda-forge --name=base mamba -y | ||
conda env remove -n nih2mne_test | ||
mamba create --override-channels --channel=conda-forge --name=nih2mne_test "mne<3.12" "python<3.12" pip -y | ||
($(CONDA_ACTIVATE) enigma_meg_test ; pip install -e .[testing]; pip install pytest pytest-reportlog ) | ||
git submodule init | ||
git pull --recurse-submodules | ||
|
||
install_headless_env: | ||
#conda install --channel=conda-forge --name=base mamba -y | ||
conda env remove -n nih2mne_test | ||
mamba create --override-channels --channel=conda-forge --name=nih2mne_test "mne<1.7" "python<3.12" pip "vtk>=9.2=*osmesa*" "mesalib=21.2.5" -y | ||
($(CONDA_ACTIVATE) enigma_meg_test ; pip install -e .[testing]; pip install pytest pytest-reportlog ) | ||
git submodule init | ||
git pull --recurse-submodules | ||
|
||
install_system_requirements: | ||
dnf install Xvfb -y | ||
dnf install git git-annex -y | ||
|
||
test: | ||
($(CONDA_ACTIVATE) enigma_meg_test ; cd enigma_MEG; pytest -vv --report-log=/tmp/enigma_MEG_test_logfile.txt ) | ||
|
||
test_headless: | ||
($(CONDA_ACTIVATE) enigma_meg_test ; cd enigma_MEG; xvfb-run -a pytest -vv --report-log=/tmp/enigma_MEG_test_logfile.txt ) | ||
|
||
|
||
test_iterate_fs: | ||
($(CONDA_ACTIVATE) enigma_meg_test ; cd enigma_MEG; pytest -vv --report-log=./test_logfile.txt ) #xvfb-run -a pytest -s ) | ||
|