Sfoglia il codice sorgente

change circle to 2.0

pull/58/head
Lunny Xiao 1 anno fa
parent
commit
a16aec38f2
Firmato da: lunny <xiaolunwen@gmail.com> ID Chiave GPG: C3B7C91B632F738A
2 ha cambiato i file con 19 aggiunte e 10 eliminazioni
  1. +19
    -0
      .circleci/config.yml
  2. +0
    -10
      circle.yml

+ 19
- 0
.circleci/config.yml Vedi File

@@ -0,0 +1,19 @@
# Golang CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-go/ for more details
version: 2
jobs:
build:
docker:
# specify the version
- image: circleci/golang:1.10

working_directory: /go/src/github.com/go-xorm/cmd
steps:
- checkout

- run: go get -t -d -v ./...
- run: go test ./... -v -race -coverprofile=coverage-1.txt -covermode=atomic
- run: go get -u github.com/wadey/gocovmerge
- run: gocovmerge coverage-1.txt > coverage.txt
- run: bash <(curl -s https://codecov.io/bash)

+ 0
- 10
circle.yml Vedi File

@@ -1,10 +0,0 @@
dependencies:
override:
# './...' is a relative pattern which means all subdirectories
- cd xorm && go get -t -d -v ./...
- cd xorm && go build -v

test:
override:
# './...' is a relative pattern which means all subdirectories
- cd xorm && go test -v -race