Skip to content

Commit 6b33057

Browse files
committed
DEV: use conda render to get full package name.
We need a full package name with version and build number to ensure that the correct version gets installed for further travis tests. `conda render --output` does just that. No need for the `--dirty` option in conda-build.
1 parent dc77d4a commit 6b33057

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.travis.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,9 @@ before_install:
7272
- $NOAPT || MYTARBUNDLE="$(ls -t "${PWD}"/dist/*.tar.gz | head -1)"
7373

7474
install:
75-
- $NOMC || conda build --python=${MYPYTHON_VERSION} --dirty conda-recipe
76-
- $NOMC || MYCONDATESTENV="$(ls -td ~/mc/conda-bld/${MYNAME}_*/_t_env* | head -1)"
77-
- $NOMC || source activate ${MYCONDATESTENV:?"conda test environment not found"}
78-
- $NOMC || conda list --export ${MYNAME} > /tmp/mypackage.txt
75+
- $NOMC || conda build --python=${MYPYTHON_VERSION} conda-recipe
76+
- $NOMC || conda render --python=${MYPYTHON_VERSION} --output conda-recipe |
77+
sed 's,.*/,,; s/[.]tar[.]bz2$//; s/-/=/g' > /tmp/mypackage.txt
7978
- $NOMC || source activate testenv
8079
- $NOMC || conda install --yes --use-local --file=/tmp/mypackage.txt
8180
- $NOMC || conda install --yes

0 commit comments

Comments
 (0)