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

Commit

Permalink
Merge pull request #163 from djmitche/dep-check
Browse files Browse the repository at this point in the history
add a 'dep check' run to CI
  • Loading branch information
petemoore authored Mar 8, 2019
2 parents 42fd3db + 252df55 commit 8b26b09
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 0 deletions.
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
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.

0 comments on commit 8b26b09

Please sign in to comment.