我目前正在尝试让 GoBuffalo 和 CircleCi 工作,但到目前为止还没有运气。
Circleci 在“buffalo build”步骤中失败并显示错误消息:
我的 config.yaml:
version: 2
jobs:
khw_build_and_test:
docker:
- image: circleci/golang:1.9
working_directory: /go/src/github.com/khwerhahn/khw
environment:
TEST_RESULTS: /tmp/test-results
steps:
- checkout
- run: mkdir -p $TEST_RESULTS # create the test results directory
- run:
name: Update PATH and Define Environment Variable at Runtime
command: |
echo 'export PATH=${GOPATH}/bin/:${PATH}' >> $BASH_ENV
source $BASH_ENV
- run: go get -v -t -d ./...
- run: go get -u -v github.com/gobuffalo/buffalo/buffalo
- run: buffalo build
- restore_cache:
keys:
- v1-pkg-cache
- save_cache: # Store cache in the /go/pkg directory
key: v1-pkg-cache
paths:
- "/go/pkg"
khw_deploy_to_production:
xxxx cut out xxxx
workflows:
version: 2
build_test_deploy:
jobs:
- khw_build_and_test
- khw_deploy_to_production:
requires:
- khw_build_and_test
filters:
branches:
only: master
有人可以向我解释这个错误吗?