github.com/unidoc/unidoc@v2.2.0+incompatible/wercker.yml (about) 1 # This references the default golang container from 2 # the Docker Hub: https://registry.hub.docker.com/u/library/golang/ 3 # If you want Google's container you would reference google/golang 4 # Read more about containers on our dev center 5 # http://devcenter.wercker.com/docs/containers/index.html 6 box: golang 7 # This is the build pipeline. Pipelines are the core of wercker 8 # Read more about pipelines on our dev center 9 # http://devcenter.wercker.com/docs/pipelines/index.html 10 11 # You can also use services such as databases. Read more on our dev center: 12 # http://devcenter.wercker.com/docs/services/index.html 13 # services: 14 # - postgres 15 # http://devcenter.wercker.com/docs/services/postgresql.html 16 17 # - mongo 18 # http://devcenter.wercker.com/docs/services/mongodb.html 19 build: 20 # The steps that will be executed on build 21 # Steps make up the actions in your pipeline 22 # Read more about steps on our dev center: 23 # http://devcenter.wercker.com/docs/steps/index.html 24 steps: 25 # Sets the go workspace and places you package 26 # at the right place in the workspace tree 27 - setup-go-workspace 28 29 # Gets the dependencies 30 - script: 31 name: go get 32 code: | 33 cd $WERCKER_SOURCE_DIR 34 go version 35 go get -t $(go list ./... | grep -v textencoding/glyphlist) 36 37 # Build the project 38 - script: 39 name: go build 40 code: | 41 go build $(go list ./... | grep -v examples | grep -v textencoding/glyphlist) 42 43 # Test the project 44 - script: 45 name: go test 46 code: | 47 go test $(go list ./... | grep -v examples| grep -v textencoding/glyphlist)