Skip to content

Commit

Permalink
Merge pull request #13 from ExchangeUnion/refine-travis-yaml
Browse files Browse the repository at this point in the history
Refine Travis YAML description file
  • Loading branch information
reliveyy authored Aug 27, 2020
2 parents a6ee6fe + 24b031d commit adcc66d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion tests/travis_client_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
10 changes: 2 additions & 8 deletions xud_docker_bot/clients/travis.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
],
Expand All @@ -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,
Expand Down

0 comments on commit adcc66d

Please sign in to comment.