Add the API tests to Travis