travis_test.go 242 Bytes
Newer Older
Jeromy's avatar
Jeromy committed
1
2
3
4
5
6
7
8
9
10
11
12
13
package travis

import (
	"os"
	"testing"
)

func TestIsRunning(t *testing.T) {
	tr := os.Getenv("TRAVIS") == "true" && os.Getenv("CI") == "true"
	if tr != IsRunning() {
		t.Error("IsRunning() does not match TRAVIS && CI env var check")
	}
}