diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..7e09f93 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,30 @@ +# Golang CircleCI 2.0 configuration file +# +# Check https://circleci.com/docs/2.0/language-go/ for more details +version: 2 +jobs: + build: + docker: + - image: circleci/golang:latest + + working_directory: /go/src/github.com/shu-go/vvin + + environment: + - GOPATH: /home/circleci/go + + steps: + - run: echo 'export PATH=${GOPATH}/bin/:${PATH}' >> $BASH_ENV + - checkout + - run: go get -u github.com/Songmu/goxz/cmd/goxz github.com/tcnksm/ghr + - run: goxz -pv $(git describe --abbrev=0) -os "windows" -arch="386 amd64" -build-ldflags "-s -w -X main.Version=$(git describe --abbrev=0)" -include sample.bat + - run: ghr -t $GITHUB_TOKEN -u shu-go --replace $(git describe --abbrev=0) goxz/ + +workflows: + version: 2 + test-build: + jobs: + - build: + filters: + branches: + only: + - master