Skip to content

Commit

Permalink
Add 'conda init' to configure bash shell to use Conda
Browse files Browse the repository at this point in the history
  • Loading branch information
hcho3 committed Dec 23, 2019
1 parent 895f53f commit 3309906
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions tests/travis/run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

make -f dmlc-core/scripts/packages.mk lz4

conda init

if [ ${TASK} == "python_test" ]; then
set -e
# Build/test
Expand Down
3 changes: 2 additions & 1 deletion tests/travis/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ if [ ${TASK} == "python_test" ]; then
if [ ${TRAVIS_OS_NAME} == "osx" ]; then
wget -O conda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
else
echo "We are no longer running Linux test on Travis."
echo "We are no longer running Linux test on Travis."
exit 1
fi
bash conda.sh -b -p $HOME/miniconda
export PATH="$HOME/miniconda/bin:$PATH"
hash -r
conda init
conda config --set always_yes yes --set changeps1 no
conda update -q conda
# Useful for debugging any issues with conda
Expand Down

0 comments on commit 3309906

Please sign in to comment.