From 920df12273271b96d6c8369f2eba23c961b67f0a Mon Sep 17 00:00:00 2001 From: speter Date: Tue, 27 Mar 2018 05:18:22 +0200 Subject: [PATCH] add circleci, appveyor --- .appveyor/appveyor.yml | 19 +++++++++++++++++++ .circleci/config.yml | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 .appveyor/appveyor.yml create mode 100644 .circleci/config.yml diff --git a/.appveyor/appveyor.yml b/.appveyor/appveyor.yml new file mode 100644 index 0000000..1d03f8b --- /dev/null +++ b/.appveyor/appveyor.yml @@ -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 ./... diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..28b35fc --- /dev/null +++ b/.circleci/config.yml @@ -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