diff --git a/.circleci/unittest/linux/scripts/install.sh b/.circleci/unittest/linux/scripts/install.sh index 95155e518..b26b91d39 100755 --- a/.circleci/unittest/linux/scripts/install.sh +++ b/.circleci/unittest/linux/scripts/install.sh @@ -8,7 +8,7 @@ unset PYTORCH_VERSION set -e #eval "$(./conda/bin/conda shell.bash hook)" -conda activate ./env +#conda activate ./env if [ "${CU_VERSION:-}" == cpu ] ; then echo "Using cpu build" diff --git a/.circleci/unittest/linux/scripts/post_process.sh b/.circleci/unittest/linux/scripts/post_process.sh index a7a6dce58..bb910394a 100755 --- a/.circleci/unittest/linux/scripts/post_process.sh +++ b/.circleci/unittest/linux/scripts/post_process.sh @@ -3,4 +3,4 @@ set -e #eval "$(./conda/bin/conda shell.bash hook)" -conda activate ./env +#conda activate ./env diff --git a/.circleci/unittest/linux/scripts/run_test.sh b/.circleci/unittest/linux/scripts/run_test.sh index 08e554f03..be69aeafc 100755 --- a/.circleci/unittest/linux/scripts/run_test.sh +++ b/.circleci/unittest/linux/scripts/run_test.sh @@ -3,7 +3,7 @@ set -e #eval "$(./conda/bin/conda shell.bash hook)" -conda activate ./env +#conda activate ./env export PYTORCH_TEST_WITH_SLOW='1' python -m torch.utils.collect_env diff --git a/.circleci/unittest/linux/scripts/setup_env.sh b/.circleci/unittest/linux/scripts/setup_env.sh index 550819025..6bea9168a 100755 --- a/.circleci/unittest/linux/scripts/setup_env.sh +++ b/.circleci/unittest/linux/scripts/setup_env.sh @@ -6,6 +6,8 @@ # Do not install PyTorch and torchvision here, otherwise they also get cached. set -e +set -v + this_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" # Avoid error: "fatal: unsafe repository" @@ -29,14 +31,13 @@ esac #fi #eval "$(${conda_dir}/bin/conda shell.bash hook)" -# 2. Create test environment at ./env -printf "python: ${PYTHON_VERSION}\n" -conda init bash -if [ ! -d "${env_dir}" ]; then - printf "* Creating a test environment\n" - conda create --prefix "${env_dir}" -y python="$PYTHON_VERSION" -fi -conda activate "${env_dir}" +## 2. Create test environment at ./env +#printf "python: ${PYTHON_VERSION}\n" +#if [ ! -d "${env_dir}" ]; then +# printf "* Creating a test environment\n" +# conda create --prefix "${env_dir}" -y python="$PYTHON_VERSION" +#fi +#conda activate "${env_dir}" # 3. Install Conda dependencies printf "* Installing dependencies (except PyTorch)\n"