Skip to content

Commit

Permalink
Merge pull request #19 from vinferrer/afni
Browse files Browse the repository at this point in the history
Change unit test docker image to an image with afni installed
  • Loading branch information
vinferrer authored Oct 27, 2021
2 parents 0a771d1 + 37bca57 commit c46babf
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
py36_unittest:
working_directory: /tmp/src/connPFM
docker:
- image: continuumio/miniconda3
- image: sento4000/afni_miniconda
steps:
- checkout
- persist_to_workspace:
Expand All @@ -22,6 +22,7 @@ jobs:
command: |
if [[ -e /opt/conda/envs/py36_env ]]; then
echo "Restoring environment from cache"
cp -r /opt/conda/envs/py39_env /opt/miniconda-latest/envs/py39_env
source activate py36_env
else
conda create -n py36_env python=3.6 numpy -yq
Expand All @@ -40,7 +41,7 @@ jobs:
py37_unittest:
working_directory: /tmp/src/connPFM
docker:
- image: continuumio/miniconda3
- image: sento4000/afni_miniconda
steps:
- checkout
- persist_to_workspace:
Expand All @@ -52,6 +53,7 @@ jobs:
command: |
if [[ -e /opt/conda/envs/py37_env ]]; then
echo "Restoring environment from cache"
cp -r /opt/conda/envs/py39_env /opt/miniconda-latest/envs/py39_env
source activate py37_env
else
conda create -n py37_env python=3.7 numpy -yq
Expand All @@ -70,7 +72,7 @@ jobs:
py38_unittest:
working_directory: /tmp/src/connPFM
docker:
- image: continuumio/miniconda3
- image: sento4000/afni_miniconda
steps:
- checkout
- persist_to_workspace:
Expand All @@ -82,6 +84,7 @@ jobs:
command: |
if [[ -e /opt/conda/envs/py38_env ]]; then
echo "Restoring environment from cache"
cp -r /opt/conda/envs/py39_env /opt/miniconda-latest/envs/py39_env
source activate py38_env
else
conda create -n py38_env python=3.8 numpy -yq
Expand Down Expand Up @@ -127,10 +130,11 @@ jobs:
paths:
- "/opt/conda/envs/py39_env"


py39_unittest_and_coverage:
working_directory: /tmp/src/connPFM
docker:
- image: continuumio/miniconda3
- image: sento4000/afni_miniconda
steps:
- attach_workspace: # get connPFM
at: /tmp
Expand All @@ -142,6 +146,7 @@ jobs:
apt-get update
apt-get install -yqq make
apt-get install -yqq curl
cp -r /opt/conda/envs/py39_env /opt/miniconda-latest/envs/py39_env
source activate py39_env
make unittest
- codecov/upload:
Expand Down

0 comments on commit c46babf

Please sign in to comment.