File tree Expand file tree Collapse file tree 1 file changed +11
-10
lines changed
Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Original file line number Diff line number Diff 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 : NPM_TESTS=1
38+ env : WP_VERSION=4.9 NPM_TESTS=1
3939 allow_failures :
4040 - php : 5.2
4141
@@ -47,6 +47,16 @@ before_script:
4747 phpenv config-rm xdebug.ini
4848 fi
4949 fi
50+ - |
51+ if [[ "$NPM_TESTS" == "1" ]]; then
52+ rm -rf ~/.nvm
53+ git clone https://github.com/creationix/nvm.git ~/.nvm
54+ cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`
55+ source ~/.nvm/nvm.sh
56+ nvm install 8
57+ npm install
58+ export PATH="$HOME/.composer/vendor/bin:$PATH"
59+ fi
5060 - |
5161 case "$TRAVIS_PHP_VERSION" in
5262 5.6|5.5|5.4|5.3)
@@ -71,15 +81,6 @@ before_script:
7181 composer install
7282 cd ..
7383 fi
74- - |
75- if [[ "$NPM_TESTS" == "1" ]]; then
76- rm -rf ~/.nvm
77- git clone https://github.com/creationix/nvm.git ~/.nvm
78- cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`
79- source ~/.nvm/nvm.sh
80- nvm install 8
81- npm install
82- fi
8384 - PLUGIN_SLUG=$(basename $(pwd))
8485 - export WP_DEVELOP_DIR=/tmp/wordpress/
8586 - git clone --depth=50 --branch="$WP_VERSION" git://develop.git.wordpress.org/ /tmp/wordpress
You can’t perform that action at this time.
0 commit comments