Skip to content

Commit 6512746

Browse files
author
Felix Arntz
committed
Fix NPM tests by moving back to working dir after tweaking setup.
1 parent 1eeace6 commit 6512746

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.travis.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ matrix:
3535
- php: 5.6
3636
env: WP_VERSION=4.5 WP_MULTISITE=1
3737
- php: 7.0
38-
env: WP_VERSION=4.9 NPM_TESTS=1
38+
env: NPM_TESTS=1
3939
allow_failures:
4040
- php: 5.2
4141

@@ -51,12 +51,14 @@ before_script:
5151
if [[ "$NPM_TESTS" == "1" ]]; then
5252
rm -rf ~/.nvm
5353
git clone https://github.com/creationix/nvm.git ~/.nvm
54-
cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`
54+
cd ~/.nvm
55+
git checkout `git describe --abbrev=0 --tags`
56+
cd $TRAVIS_BUILD_DIR
5557
source ~/.nvm/nvm.sh
5658
nvm install 8
5759
npm install
58-
export PATH="$HOME/.composer/vendor/bin:$PATH"
5960
fi
61+
- export PATH="$HOME/.composer/vendor/bin:$PATH"
6062
- |
6163
case "$TRAVIS_PHP_VERSION" in
6264
5.6|5.5|5.4|5.3)

0 commit comments

Comments
 (0)