add before, script, matrix and notifications in .travis.yml