Skip to content

Commit 01c6066

Browse files
authored
travis-build.sh: Use conda activate
Newer versions of conda support activating an environment with `conda activate $env`, so let's use that recommended syntax instead of `source activate $env`. This hopefully fixes the Travis build failure here: https://travis-ci.org/imagej/tutorials/builds/388369917
1 parent 6f1e131 commit 01c6066

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

travis-build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ then
154154
condaEnv=travis-scijava
155155
test -d "$condaDir/envs/$condaEnv" && condaAction=update || condaAction=create
156156
$condaDir/bin/conda env "$condaAction" -n "$condaEnv" -f environment.yml &&
157-
source "$condaDir/bin/activate" "$condaEnv"
157+
$condaDir/bin/conda activate "$condaEnv"
158158
checkSuccess $?
159159

160160
echo travis_fold:end:scijava-conda

0 commit comments

Comments
 (0)