diff --git a/tests/travis_client_test.py b/tests/travis_client_test.py index 330efbb..f8ff26d 100644 --- a/tests/travis_client_test.py +++ b/tests/travis_client_test.py @@ -2,7 +2,7 @@ def test1(): - client = TravisClient(api_token="***REMOVED***") + client = TravisClient(api_token="69RPiqzoC_QvKRiOJ5zLEw") result = client.get_builds_of_github_repo("ExchangeUnion/xud-docker") print(result) diff --git a/xud_docker_bot/clients/travis.py b/xud_docker_bot/clients/travis.py index c5e47da..b0d00d0 100644 --- a/xud_docker_bot/clients/travis.py +++ b/xud_docker_bot/clients/travis.py @@ -118,10 +118,11 @@ def trigger_travis_build2( "branch": branch, "merge_mode": "replace", "config": { + "os": "linux", + "dist": "bionic", "language": "python", "python": "3.8", "arch": arch, - "services": ["docker"], "before_script": [ 'echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin', ], @@ -130,13 +131,6 @@ def trigger_travis_build2( } } - # TODO remove this backward compatibility workaround - if branch != "no-force" and not branch.startswith("dummy"): - config = payload["request"]["config"] - config["git"] = { - "depth": False - } - r = post(f"{self.api_url}/repo/{self.repo}/requests", json=payload, headers={ "Travis-API-Version": "3", "Authorization": "token " + self.api_token,