Add back fail_state to context manager
Add travis-ci config