box: golang # services: # - postgres # http://devcenter.wercker.com/docs/services/postgresql.html # - mongodb # http://devcenter.wercker.com/docs/services/mongodb.html build: # The steps that will be executed on build # Steps make up the actions in your pipeline # Read more about steps on our dev center: # http://devcenter.wercker.com/docs/steps/index.html steps: # Sets the go workspace and places you package # at the right place in the workspace tree - setup-go-workspace: package-dir: github.com/joyent/gosdc # Gets the dependencies - script: name: go get code: | go get -v -t ./... - script: name: make a new key for testing code: | ssh-keygen -b 2048 \ -C "Testing Key" \ -f $WERCKER_SOURCE_DIR/test_key.id_rsa \ -t rsa \ -P "" # Build the project - script: name: go build code: | go build ./... # Test the project - script: name: go test code: | env KEY_NAME=$WERCKER_SOURCE_DIR/test_key.id_rsa LIVE=false go test ./...