Skip to content

Commit

Permalink
Initial CircleCI configuration. (cloudspannerecosystem#18)
Browse files Browse the repository at this point in the history
* Initial CircleCI configuration.

* Change the Docker image to golang:1.13.8-buster.
  • Loading branch information
lgruen committed Feb 26, 2020
1 parent bd5ec10 commit a5a192e
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Golang CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-go/ for more details
version: 2
jobs:
build_and_test:
docker:
- image: golang:1.13.8-buster

working_directory: /go/src/github.com/cloudspannerecosystem/wrench

steps:
- checkout

- run:
name: set credentials
command: |
echo $GCLOUD_SERVICE_KEY > $HOME/gcloud-service-key.json
echo 'export GOOGLE_APPLICATION_CREDENTIALS=$HOME/gcloud-service-key.json' >> $BASH_ENV
- run: go test -v ./...

workflows:
version: 2

commit: # Run on every commit.
jobs:
- build_and_test

nightly: # Run every night.
triggers:
- schedule:
cron: "0 0 * * *"
filters:
branches:
only:
- master
jobs:
- build_and_test
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# wrench
[![cloudspannerecosystem](https://circleci.com/gh/cloudspannerecosystem/wrench.svg?style=svg)](https://circleci.com/gh/cloudspannerecosystem/wrench)

`wrench` is a schema management tool for [Cloud Spanner](https://cloud.google.com/spanner/).

Expand Down

0 comments on commit a5a192e

Please sign in to comment.