build: move to npm scripts

Gulp sometimes hangs indefinitely when running tests on Travis.