Skip to content

Commit 58c1169

Browse files
committed
Run travis tests within the git working directory.
Move empty run directory under the git working directory. Avoid warnings from codecov due to unknown git version.
1 parent 0cf92ee commit 58c1169

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,10 @@ before_install:
5454
echo "Unsupported operating system." >&2;
5555
exit 2 ;;
5656
esac
57+
- MYRUNDIR=${PWD}/build/rundir
5758

5859
- mkdir -p ~/pkgs/
59-
- mkdir -p ~/rundir/
60+
- mkdir -p ${MYRUNDIR}
6061

6162
- $NOMC || pushd ~/pkgs/
6263
- $NOMC || wget --timestamping ${MYMCREPO}/${MYMCBUNDLE}
@@ -81,7 +82,7 @@ install:
8182
- $NOAPT || pip install $MYPIPFLAGS coverage
8283
- $NOAPT || easy_install --user "${MYTARBUNDLE}"
8384

84-
- cd ~/rundir
85+
- cd ${MYRUNDIR}
8586
- MYGIT_REV=$(python -c "import diffpy.pdfgui.version as v; print(v.__gitsha__)")
8687
- if [[ "${TRAVIS_COMMIT}" != "${MYGIT_REV}" ]]; then
8788
echo "Version mismatch ${TRAVIS_COMMIT} vs ${MYGIT_REV}.";

0 commit comments

Comments
 (0)