func IsEnvironmentTravis() bool {
	if os.Getenv("GOCHESSENV") == "travis" {
		return true
	}
	return false
}
Returns true if the environment is in Travis
package gostuff
import (
	"bufio"
	"bytes"
	"database/sql"
	"encoding/base64"
	"encoding/hex"
	"encoding/json"
	"fmt"
	"io/ioutil"
	"log"
	"os"
	"os/exec"
	"runtime"
	"strings"
	"time"
	"github.com/go-ini/ini"
	_ "github.com/go-sql-driver/mysql"
)
type GoGame struct {
	ID           int
	White        string
	Black        string
	GameType     string
	WhiteRating  int
	BlackRating  int
	WhiteMinutes int
	WhiteSeconds int
	BlackMinutes int
	BlackSeconds int
	TimeControl  int
	Moves        string  
	Total        int
	Result       int  
	Status       string
	Date         string
	Time         string
	Rated        string
	CountryWhite string
	CountryBlack string
}
type DatabaseInfo struct {
	Host     string
	User     string
	Password string
	DbName   string
	Port     string
}
var (
	isWindows        = false
	USER_CONFIG_PATH = "secret/config.txt"
	ROOT_CONFIG_PATH = "secret/root.txt"
)
var db *sql.DB
func DbSetup(backup string) bool {
	if runtime.GOOS == "windows" {
		isWindows = true
	}
	exists := IsDirectory(backup)
	if exists == false {
		err := os.Mkdir(backup, 0777)
		if err != nil {
			fmt.Println("database.go DbSetup 1, error creating backup directory", err)
		}
	}
	var sqlOpenFile = ROOT_CONFIG_PATH
	if IsEnvironmentTravis() {
		sqlOpenFile = "_travis/data/dbtravis.txt"
	}
	var err error
	dbString, database := ReadFile(sqlOpenFile)
	db, err = sql.Open("mysql", dbString)
	if err != nil {
		fmt.Println("Error opening Database DBSetup 2", err)
		return false
	}
	if db.Ping() != nil {
		fmt.Println("Database", database, "does not exist")
		fmt.Println("Please wait while database is imported...")
		result := importDatabase()
		if result == false {
			result = importTemplateDatabase()
			if result == false {
				fmt.Println("database.go Dbsetup FAILED to import both databases!")
				return false
			} else {
				fmt.Println("Empty template database successfully imported!")
			}
		} else {
			fmt.Println(database, "database successfully imported!")
		}
		if db.Ping() != nil {
			fmt.Println("database.go Dbsetup 5 ", database, " is still missing after import!!!")
			return false
		}
	}
	fmt.Println("MySQL is now connected.")
	return true
}
func GetDb() *sql.DB {
	return db
}
func SetDb(dataDb *sql.DB) {
	db = dataDb
}