(But its mine.)
- Tutorial from semaphoreci.com
- GitHub Account
- PostgreSql installed and configured (see Tutorial)
- make sure user/role 'postgres' is available
- environment variables properly set
- export APP_DB_USERNAME=postgres
- export APP_DB_PASSWORD=<whatever password you use>
- export APP_DB_NAME=postgres
- GoLang installed (see golang.org)
- When you run go test it compiles all the files ending in _test.go into a test binary and then runs that binary to execute the tests. Since the go test binary is simply a compiled go program, it can process command line arguments like any other program
- 2nd part: add Travis (.travis.yml), see docs.travis-ci.com