From 3f612c9eb157580e73b0462625661d12d0d8e8b2 Mon Sep 17 00:00:00 2001 From: Nitin Madnani Date: Mon, 2 Oct 2017 13:28:20 -0400 Subject: [PATCH 1/3] Remove pkg directories post-test to avoid caching them. --- circle.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/circle.yml b/circle.yml index f25418808..73c7be044 100644 --- a/circle.yml +++ b/circle.yml @@ -23,3 +23,4 @@ test: - ${HOME}/miniconda3/bin/nosetests -v tests --with-coverage --cover-package=rsmtool --cov-config .coveragerc post: - cd ${HOME}/rsmtool && ${HOME}/miniconda3/bin/coveralls + - pushd ${HOME}/miniconda3/pkgs && find -maxdepth 1 -mindepth 1 -type d | xargs rm -rf && popd From 0651ce0eeee1f63b26e4ce54214ca93579001a17 Mon Sep 17 00:00:00 2001 From: Nitin Madnani Date: Mon, 2 Oct 2017 13:29:27 -0400 Subject: [PATCH 2/3] Minor change. --- circle.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/circle.yml b/circle.yml index 73c7be044..0354af436 100644 --- a/circle.yml +++ b/circle.yml @@ -9,6 +9,7 @@ dependencies: - "~/miniconda3/pkgs" override: - wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh + - pushd ${HOME}/miniconda3/pkgs && find -maxdepth 1 -mindepth 1 -type d | xargs rm -rf && popd - chmod +x miniconda.sh - ./miniconda.sh -b -f - ${HOME}/miniconda3/bin/conda config --add channels desilinguist @@ -23,4 +24,3 @@ test: - ${HOME}/miniconda3/bin/nosetests -v tests --with-coverage --cover-package=rsmtool --cov-config .coveragerc post: - cd ${HOME}/rsmtool && ${HOME}/miniconda3/bin/coveralls - - pushd ${HOME}/miniconda3/pkgs && find -maxdepth 1 -mindepth 1 -type d | xargs rm -rf && popd From 6039c97268277da51f1364af0833895171d32657 Mon Sep 17 00:00:00 2001 From: Nitin Madnani Date: Mon, 2 Oct 2017 13:41:36 -0400 Subject: [PATCH 3/3] Create new conda environment instead of using root environment. --- circle.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/circle.yml b/circle.yml index 0354af436..bd6f17de5 100644 --- a/circle.yml +++ b/circle.yml @@ -14,13 +14,13 @@ dependencies: - ./miniconda.sh -b -f - ${HOME}/miniconda3/bin/conda config --add channels desilinguist - ${HOME}/miniconda3/bin/conda update --yes conda - - ${HOME}/miniconda3/bin/conda install --file conda_requirements.txt --yes - - ${HOME}/miniconda3/bin/pip install nose-cov python-coveralls - - ${HOME}/miniconda3/bin/pip install -e . + - ${HOME}/miniconda3/bin/conda create --name rsmenv --file conda_requirements.txt --yes + - ${HOME}/miniconda3/envs/rsmenv/bin/pip install nose-cov python-coveralls + - ${HOME}/miniconda3/envs/rsmenv/bin/pip install -e . # Run test test: override: - - ${HOME}/miniconda3/bin/nosetests -v tests --with-coverage --cover-package=rsmtool --cov-config .coveragerc + - ${HOME}/miniconda3/envs/rsmenv/bin/nosetests -v tests --with-coverage --cover-package=rsmtool --cov-config .coveragerc post: - - cd ${HOME}/rsmtool && ${HOME}/miniconda3/bin/coveralls + - cd ${HOME}/rsmtool && ${HOME}/miniconda3/envs/rsmenv/bin/coveralls