Skip to content

Commit

Permalink
fix: begin updating CI config
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonwalsh authored and jasonwalsh committed Nov 5, 2019
1 parent 5246e76 commit 1f223b9
Showing 1 changed file with 8 additions and 63 deletions.
71 changes: 8 additions & 63 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,64 +1,9 @@
jobs:
pre-commit:
docker:
- image: quay.io/mongodb-build/terratest
steps:
- checkout
- restore_cache:
key: v1-venv
- run: |
virtualenv venv
. venv/bin/activate
pip install pre-commit
pre-commit install
pre-commit run --all-files
- save_cache:
key: v1-venv
paths:
- venv
test:
docker:
- image: quay.io/mongodb-build/terratest
steps:
- checkout
- restore_cache:
key: gopkg-{{ checksum "Gopkg.lock" }}
- run: |
dep ensure
go test -timeout 30m -v ./...
- save_cache:
key: gopkg-{{ checksum "Gopkg.lock" }}
paths:
- vendor
working_directory: /go/src/github.com/10gen/terraform-mongohouse
deploy:
docker:
- image: circleci/node:8
steps:
- checkout
- restore_cache:
key: v1-npm
- run: |
sudo npm install @semantic-release/changelog -D
sudo npm install @semantic-release/git -D
npx semantic-release
- save_cache:
key: v1-npm
paths:
- node_modules
version: 2.0
workflows:
pre-commit-test-deploy:
jobs:
- pre-commit
- test:
requires:
- pre-commit
- deploy:
filters:
branches:
only: master
requires:
- test
version: 2
jobs:
build:
steps:
- go/install:
version: 1.13.4
orbs:
go: circleci/go@0.2.0
version: 2.1

0 comments on commit 1f223b9

Please sign in to comment.