Skip to content
This repository has been archived by the owner on Feb 20, 2020. It is now read-only.

add a 'dep check' run to CI #163

Merged
merged 2 commits into from
Mar 8, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .taskcluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -494,3 +494,49 @@ tasks:
type: file
cache:
generic-worker-checkout: /go/src

- provisionerId: "{{ taskcluster.docker.provisionerId }}"
workerType: "{{ taskcluster.docker.workerType }}"
metadata:
name: dep-check
description: "Run 'dep check' to ensure dependencies are up to date"
owner: "{{ event.head.user.email }}" # the user who sent the pr/push e-mail will be inserted here
source: "{{ event.head.repo.url }}" # the repo where the pr came from will be inserted here
extra:
github:
# Events that will trigger this task
events:
- pull_request.opened
- pull_request.synchronize
- push
scopes:
- secrets:get:repo:github.com/taskcluster/generic-worker
- docker-worker:cache:generic-worker-checkout
payload:
features:
taskclusterProxy: true
maxRunTime: 3600
image: golang:1.10
env:
# once bug 1508383 is landed, this won't be required (the worker will supply it)
TASKCLUSTER_ROOT_URL: https://taskcluster.net
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this isn't needed as bug 1508383 has landed, but I'll remove it in a separate PR as we have that throughout the .taskcluster.yml file.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is still needed for generic-worker workers that have not been upgraded to ^13.0.0

command:
- /bin/bash
- -vxec
- |
export CGO_ENABLED=0
go version
go env
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
mkdir -p "${GOPATH}/src/github.com/taskcluster"
cd "${GOPATH}/src/github.com/taskcluster"
if [ ! -d generic-worker/.git ]; then rm -rf generic-worker; git clone '{{ event.head.repo.url }}' 'generic-worker'; fi
cd 'generic-worker'
git fetch '{{ event.head.repo.url }}' "+{{ event.head.ref }}:refs/heads/X${TASK_ID}"
git checkout -f "X${TASK_ID}"
git reset --hard '{{ event.head.sha }}'
git clean -fdx
git checkout -B tmp -t "X${TASK_ID}"
dep check
cache:
generic-worker-checkout: /go/src
13 changes: 13 additions & 0 deletions vendor/github.com/getsentry/raven-go/Dockerfile.test

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.