From bbe45c63f2f2ba70d4bd8fa81058d75d45fc8141 Mon Sep 17 00:00:00 2001 From: Thomas Pelletier Date: Tue, 10 Dec 2013 14:50:52 +0100 Subject: [PATCH] Add test script to run both unit and example tests --- .travis.yml | 1 + test.sh | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100755 test.sh diff --git a/.travis.yml b/.travis.yml index 17a616a..ea2966c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,5 @@ language: go +script: "./test.sh" go: - 1.0 - 1.1 diff --git a/test.sh b/test.sh new file mode 100755 index 0000000..aa829ee --- /dev/null +++ b/test.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +# Run basic go unit tests +go test -v ./... + +# Run example-based toml tests +cd test_program && ./go-test.sh