Replace deprecated methods

- #mock => #double
Add travis setting