Skip to content

Apache DataFusion SQL Query Engine

ARROW-646: [Python] Conda s3 robustness, set CONDA_PKGS_DIR env variable and add Travis CI caching

Wes McKinneyd56f402b2f85
diff --git a/.travis.yml b/.travis.yml
index f74a3b205c..4a49c717bf 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -21,6 +21,12 @@ addons:
- autoconf-archive
- libgirepository1.0-dev
+cache:
+ ccache: true
+ directories:
+ - $HOME/.conda_packages
+ - $HOME/.ccache
+
matrix:
fast_finish: true
allow_failures:
diff --git a/ci/travis_install_conda.sh b/ci/travis_install_conda.sh
index e064317f12..c036e92542 100644
--- a/ci/travis_install_conda.sh
+++ b/ci/travis_install_conda.sh
@@ -23,13 +23,20 @@ fi
wget -O miniconda.sh $MINICONDA_URL
export MINICONDA=$HOME/miniconda
+export CONDA_PKGS_DIRS=$HOME/.conda_packages
+mkdir -p $CONDA_PKGS_DIRS
bash miniconda.sh -b -p $MINICONDA
export PATH="$MINICONDA/bin:$PATH"
conda update -y -q conda
+conda config --set auto_update_conda false
conda info -a
conda config --set show_channel_urls True
+
+# Help with SSL timeouts to S3
+conda config --set remote_connect_timeout_secs 12
+
conda config --add channels https://repo.continuum.io/pkgs/free
conda config --add channels conda-forge
conda info -a