diff --git a/.travis.yml b/.travis.yml index 5d8d9a89c6c8e..dc92cf60febda 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,7 @@ language: php # Setup a global environemnt and overide as needed env: global: - - WP_TRAVISCI=travis:phpunit + - WP_TRAVISCI="phpunit --testdox" # Next we define our matrix of additional build configurations to test against. # The versions listed above will automatically create our first configuration, @@ -23,7 +23,9 @@ env: matrix: include: - php: "5.6" - env: WP_VERSION=4.5 WP_TRAVISCI=travis:js + env: WP_VERSION=4.5 WP_TRAVISCI="gulp travis:js" + - php: "5.6" + env: WP_VERSION=4.5 WP_TRAVISCI="npm run test-client" - php: "5.2" env: WP_VERSION=master - php: "5.2" @@ -87,14 +89,10 @@ before_script: - sed -i "s/yourusernamehere/root/" wp-tests-config.php - sed -i "s/yourpasswordhere//" wp-tests-config.php - cd "/tmp/wordpress/src/wp-content/plugins/$PLUGIN_SLUG" - - gem install sass - - gem install compass - - nvm install 5 - - npm install -g npm@'3.8.9' - - npm install -g gulp-cli - - npm install + - ./tests/load-travis.sh -script: gulp $WP_TRAVISCI +script: + - $WP_TRAVISCI sudo: false diff --git a/gulpfile.js b/gulpfile.js index e8bb96f2b6e60..8222d7b5642e3 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -16,7 +16,6 @@ var autoprefixer = require( 'gulp-autoprefixer' ), rename = require( 'gulp-rename' ), rtlcss = require( 'gulp-rtlcss' ), sass = require( 'gulp-sass' ), - shell = require( 'gulp-shell' ), sourcemaps = require( 'gulp-sourcemaps' ), stylish = require( 'jshint-stylish'), util = require( 'gulp-util' ), @@ -241,13 +240,6 @@ gulp.task( 'old-sass:rtl', function() { } ); } ); -/* - Shell commands - */ -gulp.task( 'shell', shell.task( [ - 'echo hello' -], { verbose: true } ) ); - /* "Check" task Search for strings and fail if found. @@ -293,7 +285,8 @@ gulp.task( 'js:hint', function() { '!modules/**/*.min.js' ] ) .pipe( jshint( '.jshintrc' ) ) - .pipe( jshint.reporter('jshint-stylish') ); + .pipe( jshint.reporter('jshint-stylish') ) + .pipe( jshint.reporter('fail') ); } ); /* @@ -366,5 +359,4 @@ gulp.task( 'old-styles', ['frontendcss', 'admincss', 'admincss:rtl', 'old-sass gulp.task( 'languages', ['languages:get', 'languages:build', 'languages:cleanup'] ); // travis CI tasks. -gulp.task( 'travis:phpunit', ['php:unit'] ); -gulp.task( 'travis:js', ['js:hint', 'js:qunit'] ); +gulp.task( 'travis:js', ['react:build', 'js:hint', 'js:qunit'] ); diff --git a/package.json b/package.json index 0a3572af55b0d..edc5c948a14d2 100644 --- a/package.json +++ b/package.json @@ -59,7 +59,6 @@ "gulp-rtlcss": "^1.0.0", "gulp-sass": "^2.0.4", "gulp-sftp": "^0.1.5", - "gulp-shell": "^0.5.2", "gulp-sourcemaps": "^1.6.0", "gulp-util": "^3.0.6", "jshint": "2.9.1", diff --git a/phpunit.xml.dist b/phpunit.xml.dist index dbe616b04f32e..ca50575676259 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -44,6 +44,10 @@ tests/php/sync + tests/php/sync/test_interface.jetpack-sync-replicastore.php + + + tests/php/sync/test_interface.jetpack-sync-replicastore.php diff --git a/tests/load-travis.sh b/tests/load-travis.sh new file mode 100755 index 0000000000000..05e87b71c1d7c --- /dev/null +++ b/tests/load-travis.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +if [ "$WP_TRAVISCI" != "phpunit --testdox" ]; then + gem install sass + gem install compass + nvm install 5 + npm install -g npm@'3.8.9' + npm install -g gulp-cli + npm install +fi