Go/Travis CI: Difference between revisions
From charlesreid1
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
=Basics= | |||
==What this page covers== | |||
This page covers the setup of a simple Go pipeline on Travis CI: | |||
* formats new code to meet standards | |||
* test new additions to the code base (possibly using multiple versions of Go) | |||
* prevent breaking changes from being merged to master | |||
* ask for code reviews | |||
==before you begin== | |||
Before starting, you'll need to set up a Travis account and integrate it with Github. See https://tutorialedge.net/golang/building-ci-cd-pipeline-go-projects/ | |||
==dot travis yml== | |||
<pre> | |||
--- | |||
# .travis.yml | |||
language: go | |||
sudo: false | |||
go: | |||
- "1.8" | |||
- "1.9" | |||
- "1.10" | |||
- "1.11" | |||
- tip | |||
</pre> | |||
==Resources== | |||
Travis CI integration pipeline: https://tutorialedge.net/golang/building-ci-cd-pipeline-go-projects/ | Travis CI integration pipeline: https://tutorialedge.net/golang/building-ci-cd-pipeline-go-projects/ | ||
==Flags== | |||
{{GoFlag}} | {{GoFlag}} | ||
Revision as of 01:43, 13 December 2018
Basics
What this page covers
This page covers the setup of a simple Go pipeline on Travis CI:
- formats new code to meet standards
- test new additions to the code base (possibly using multiple versions of Go)
- prevent breaking changes from being merged to master
- ask for code reviews
before you begin
Before starting, you'll need to set up a Travis account and integrate it with Github. See https://tutorialedge.net/golang/building-ci-cd-pipeline-go-projects/
dot travis yml
--- # .travis.yml language: go sudo: false go: - "1.8" - "1.9" - "1.10" - "1.11" - tip
Resources
Travis CI integration pipeline: https://tutorialedge.net/golang/building-ci-cd-pipeline-go-projects/
Flags
| Go notes on Go
Go/Strings · Go/Arrays · Go/Slices
Go/Lists · Go/Maps · Go/Stacks · Go/Queues
Go/Naming Conventions · Go/Design Patterns
Go/Timing · Go/Profiling · Go/Benchmarking
Go/Tests · Go/Travis CI · Go/Makefiles
our vim + go setup uses custom solarized colors for Golang
|