Skip to content

Commit

Permalink
Move to CircleCI 2.0
Browse files Browse the repository at this point in the history
Use pre-build build container image - seems too hard to get all the
tools we need into a container running a standard CircleCI golang
image.

Also stop pinning dep since that problem appears to have gone away.
  • Loading branch information
bboreham committed Jun 25, 2018
1 parent 8f52f1e commit 4d24bd7
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 32 deletions.
38 changes: 38 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
version: 2

# https://circleci.com/blog/circleci-hacks-reuse-yaml-in-your-circleci-config-with-yaml/
defaults: &defaults
# Process to update the build container is:
# Check out desired version of this repo; 'make common-build/.uptodate'; docker push <name>
docker:
- image: weaveworks/common-build:circle20-cfa562b
working_directory: /go/src/github.com/weaveworks/common

workflows:
version: 2
test-build-deploy:
jobs:
- lint
- test

jobs:
lint:
<<: *defaults
steps:
- checkout
- run:
name: Lint
command: |
touch common-build/.uptodate &&
make BUILD_IN_CONTAINER=false lint
test:
<<: *defaults
steps:
- checkout
- run:
name: Test
command: |
dep ensure &&
touch common-build/.uptodate &&
make BUILD_IN_CONTAINER=false test
32 changes: 0 additions & 32 deletions circle.yml

This file was deleted.

0 comments on commit 4d24bd7

Please sign in to comment.