Skip to content

Commit 3da454f

Browse files
committed
Execute travis tests in an empty directory.
codecov searches through filesystem hierarchy and can take a while when run from HOME.
1 parent a6327be commit 3da454f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: .travis.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ before_install:
5454
esac
5555

5656
- mkdir -p ~/pkgs/
57+
- mkdir -p ~/rundir/
5758

5859
- $NOMC || pushd ~/pkgs/
5960
- $NOMC || wget --timestamping ${MYMCREPO}/${MYMCBUNDLE}
@@ -77,7 +78,7 @@ install:
7778
- $NOAPT || pip install $MYPIPFLAGS coverage
7879
- $NOAPT || easy_install --user "${MYTARBUNDLE}"
7980

80-
- cd
81+
- cd ~/rundir
8182
- MYGIT_REV=$(python -c "import diffpy.utils.version as v; print(v.__gitsha__)")
8283
- if [[ "${TRAVIS_COMMIT}" != "${MYGIT_REV}" ]]; then
8384
echo "Version mismatch ${TRAVIS_COMMIT} vs ${MYGIT_REV}.";

0 commit comments

Comments
 (0)