I'm beginning with Jenkins. 

I want, that each time I do a git commit (or push?), that the jasmine test of my ionic project was executed and must work before the commit can be done.

In reality, it has 2 questions:

* How execute jasmine test with Jenkins?

In this moment I execute the test with:

```
npm test

```

* How can I do for executing this tests with a commit (or a push)?

Thanks
Best regards