Browse Source

circleci 2.0 (#134)

* circleci 2.0
pull/1782/head
Ismail Khoffi 6 years ago
committed by GitHub
parent
commit
41369d7529
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 21 deletions
  1. +25
    -0
      .circleci/circle.yml
  2. +0
    -21
      circle.yml

+ 25
- 0
.circleci/circle.yml View File

@ -0,0 +1,25 @@
version: 2
jobs:
build:
working_directory: /go/src/github.com/tendermint/go-crypto
docker:
- image: circleci/golang:1.10.0
environment:
GOBIN: /tmp/workspace/bin
steps:
- run: mkdir -p /tmp/workspace/bin
- run: mkdir -p /tmp/workspace/profiles
- checkout
- restore_cache:
keys:
- v1-dep-{{ .Branch }}
- run:
name: test
command: |
go version
cd $PROJECT_PATH && make get_tools && make all
- save_cache:
key: v1-dep-{{ .Branch }}
paths:
- /go/pkg

+ 0
- 21
circle.yml View File

@ -1,21 +0,0 @@
machine:
environment:
GOPATH: /home/ubuntu/.go_workspace
PROJECT_PARENT_PATH: "$GOPATH/src/github.com/$CIRCLE_PROJECT_USERNAME"
PROJECT_PATH: $GOPATH/src/github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME
GO15VENDOREXPERIMENT: 1
hosts:
circlehost: 127.0.0.1
localhost: 127.0.0.1
dependencies:
override:
- mkdir -p "$PROJECT_PARENT_PATH"
- ln -sf "$HOME/$CIRCLE_PROJECT_REPONAME/" "$PROJECT_PATH"
post:
- go version
test:
override:
- "go version"
- "cd $PROJECT_PATH && make get_tools && make all"

Loading…
Cancel
Save