Running our tests

If we were to run our project now, it would fail miserably. We still need to change our project so it runs on Windows. Remove the shell step and add the Execute windows batch command step. You would think the batch command itself would be the same, but that is slightly different too:

npm install && node_modules\.bin\gulp.cmd --env=prod

Unfortunately, the batch script does not execute multiple lines, so we need to use && to execute multiple statements. Other than that, we still run npm install and the Gulp script. Notice that I have changed the gulp script to gulp.cmd.

Now that we are running on Windows, we probably want some real browsers to test with. We can make that as an options just like the env variable. We cannot ...

Get Continuous Integration, Delivery, and Deployment now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.