Add a rudimentary test environment based on Travis (#24)

* skeleton travis config

* add a file test for the generated binary

* add in a few more target calls and tests

* add a banner for the travis build, will need updated to use upstream rather than my fork

* Update .travis.yml

* Update README.md
master
Damian ONeill 2017-10-26 00:23:05 +01:00 committed by Tim Hockin
parent 7732a9a44f
commit 67efcec5b1
2 changed files with 10 additions and 0 deletions

9
.travis.yml Normal file
View File

@ -0,0 +1,9 @@
language: go
services:
- docker
script:
- make build
- test -f bin/amd64/myapp
- make container
- docker images | grep thockin/myapp-amd64
- make test

View File

@ -1,4 +1,5 @@
# Go app template build environment
[![Build Status](https://travis-ci.org/thockin/go-build-template.svg?branch=master)](https://travis-ci.org/thockin/go-build-template)
This is a skeleton project for a Go application, which captures the best build
techniques I have learned to date. It uses a Makefile to drive the build (the