Skip to content

Commit

Permalink
add circleci, appveyor
Browse files Browse the repository at this point in the history
  • Loading branch information
speter committed Mar 27, 2018
1 parent b0c61a8 commit 920df12
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .appveyor/appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
version: '{branch}.{build}'
branches:
only:
- v1
clone_folder: c:\gopath\src\gopkg.in\gcfg.v1
environment:
GOPATH: c:\gopath
install:
- set Path=c:\go\bin;%Path%
- echo %Path%
- go version
- go env
build_script:
- cd %APPVEYOR_BUILD_FOLDER%
- go get -v -t ./...
- go build -v ./...
test_script:
- cd %APPVEYOR_BUILD_FOLDER%
- go test -v ./...
32 changes: 32 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
version: 2

test: &test
working_directory: /go/src/gopkg.in/gcfg.v1
steps:
- checkout
- run: go version
- run: go env
- run: go get -v -t ./...
- run: go test -v ./...

jobs:
go1.10:
<<: *test
docker:
- image: circleci/golang:1.10
go1.9:
<<: *test
docker:
- image: circleci/golang:1.9
rc:
<<: *test
docker:
- image: circleci/golang:rc

workflows:
version: 2
test:
jobs:
- go1.10
- go1.9
- rc

0 comments on commit 920df12

Please sign in to comment.