vendredi 29 juillet 2016

Automate app-testing (phantomjs) and merging branches

I would like to automate testing and merging / deploying my application.

Fist I do testing via Chimp and ESLint:

$ chimp --ddp=http://localhost:3000 --mocha --path=tests --browser=phantomjs

and

$ eslint ./

If these tests are passing completly, I would like to merge the development branch to the master branch:

git checkout master
git merge development

Is it possible to automate these steps? So if any test is failing, no merge should be done.

Aucun commentaire:

Enregistrer un commentaire