Skip to content

Commit

Permalink
Use taskcluster 5.0.0 (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
garbas authored and marco-c committed Nov 12, 2018
1 parent eb80eac commit be53319
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions coverage_crawler/latest_cov_build.py
Expand Up @@ -26,13 +26,20 @@ def get_github_release_url(repo_slug):
return download_url, tag_name


def get_taskcluster_options():
return dict(
rootUrl=os.environ.get('TASKCLUSTER_ROOT_URL', 'https://taskcluster.net')
)


def download_artifacts(revision=None):
# Create 'tools/' directory if doesn't exist
if not os.path.exists('tools'):
os.makedirs('tools')

index = taskcluster.Index()
queue = taskcluster.Queue()
options = get_taskcluster_options()
index = taskcluster.Index(options)
queue = taskcluster.Queue(options)

if revision is None:
taskId = index.findTask('gecko.v2.mozilla-central.' + 'latest.firefox.linux64-ccov-debug')['taskId']
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
@@ -1,4 +1,4 @@
selenium==3.141.0
six==1.11.0
taskcluster==4.0.1
taskcluster==5.0.0
https://github.com/marco-c/firefox-code-coverage/archive/177d95371c7b95f338e7be30b3a3431bdfdf7e79.tar.gz#egg=firefox_code_coverage

0 comments on commit be53319

Please sign in to comment.