Skip to content

Commit 0922b43

Browse files
committed
Adjust for conda-build 2.0.
Conda test environment has been renamed from _test to _t_env and has been moved to a temporary directory.
1 parent 21fa1dc commit 0922b43

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.travis.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,10 @@ before_install:
7575
- $NOAPT || MYTARBUNDLE="$(ls -t "${PWD}"/dist/*.tar.gz | head -1)"
7676

7777
install:
78-
- $NOMC || CONDA_PY=${MYPYTHON_VERSION} conda build conda-recipe
79-
- $NOMC || conda list --name=_test --export ${MYNAME} > /tmp/mypackage.txt
78+
- $NOMC || CONDA_PY=${MYPYTHON_VERSION} conda build --keep-old-work conda-recipe
79+
- $NOMC || MYCONDATESTENV="$(ls -td ~/mc/conda-bld/conda-recipe_*/_t_env | head -1)"
80+
- $NOMC || source activate ${MYCONDATESTENV:?"conda test environment not found"}
81+
- $NOMC || conda list --export ${MYNAME} > /tmp/mypackage.txt
8082
- $NOMC || source activate testenv
8183
- $NOMC || conda install --yes --use-local --file=/tmp/mypackage.txt
8284

0 commit comments

Comments
 (0)