2017-02-03 11:00:52 +03:00
|
|
|
box: golang
|
2015-04-06 18:29:54 +03:00
|
|
|
|
|
|
|
# Build definition
|
|
|
|
build:
|
|
|
|
# The steps that will be executed on build
|
|
|
|
steps:
|
2015-04-06 18:35:03 +03:00
|
|
|
# Lint the project
|
2017-02-03 11:04:42 +03:00
|
|
|
- install-packages:
|
2017-02-03 11:07:57 +03:00
|
|
|
packages: libssl-dev
|
2015-04-06 18:35:03 +03:00
|
|
|
- script:
|
|
|
|
name: go lint
|
|
|
|
code: |
|
2015-04-06 18:39:02 +03:00
|
|
|
go get -u github.com/golang/lint/golint && golint
|
2015-04-06 18:35:03 +03:00
|
|
|
# Test the project
|
2015-04-07 16:43:11 +03:00
|
|
|
- script:
|
|
|
|
name: go get
|
|
|
|
code: |
|
2015-04-07 16:45:17 +03:00
|
|
|
go get github.com/xeodou/go-sqlcipher/sqlite3_test
|
2015-04-07 16:43:11 +03:00
|
|
|
# Test the project
|
2015-04-06 18:35:03 +03:00
|
|
|
- script:
|
|
|
|
name: go test
|
|
|
|
code: |
|
|
|
|
go test
|
2015-04-06 18:29:54 +03:00
|
|
|
|
|
|
|
# A custom script step, name value is used in the UI
|
|
|
|
# and the code value contains the command that get executed
|
|
|
|
- script:
|
|
|
|
name: echo golang information
|
|
|
|
code: |
|
2015-04-18 16:30:35 +03:00
|
|
|
echo "$(go version) running"
|