updated travis to only deploy on success, check against psr2