Skip to content

Commit e3ceed2

Browse files
committed
Fix directory handling in travis tests
1 parent 307addd commit e3ceed2

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.travis.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,17 @@ install:
1515
script:
1616
# cd into tests so CWD being repo2docker does not hide
1717
# possible issues with MANIFEST.in
18-
- if [ ${REPO_TYPE} == "r" ]; then cd tests && travis_wait pytest --cov repo2docker
19-
-v ${REPO_TYPE}; else cd tests && travis_retry pytest --cov repo2docker -v ${REPO_TYPE};
20-
fi
18+
- pushd tests;
19+
if [ ${REPO_TYPE} == "r" ]; then
20+
travis_wait pytest --cov repo2docker -v ${REPO_TYPE};
21+
else
22+
travis_retry pytest --cov repo2docker -v ${REPO_TYPE};
23+
fi;
24+
popd;
2125
- pip install -r docs/doc-requirements.txt
22-
- cd docs && make html
26+
- pushd docs;
27+
make html;
28+
popd;
2329
after_success:
2430
- pip install codecov
2531
- codecov

0 commit comments

Comments
 (0)