Set up environment for local and travis tests