Tweak to see if Travis will let this run?

Fixes to the installer.
This commit is contained in:
Azareal 2017-10-31 00:33:14 +00:00
parent 868a57d6d2
commit 90cc069132
3 changed files with 10 additions and 7 deletions

View File

@ -4,8 +4,9 @@ go:
- master - master
before_install: before_install:
- chmod 755 ./update-deps-linux - chmod 755 ./update-deps-linux
- chmod 755 ./run-linux-tests
- ./update-deps-linux - ./update-deps-linux
install: true install: true
script: go test script: ./run-linux-tests
addons: addons:
mariadb: '10.0' mariadb: '10.0'

View File

@ -112,11 +112,11 @@ func init() {
site.Language = "english" site.Language = "english"
// Database details // Database details
dbConfig.Host = "` + adap.DbHost() + `" dbConfig.Host = "` + adap.DBHost() + `"
dbConfig.Username = "` + adap.DbUsername() + `" dbConfig.Username = "` + adap.DBUsername() + `"
dbConfig.Password = "` + adap.DbPassword() + `" dbConfig.Password = "` + adap.DBPassword() + `"
dbConfig.Dbname = "` + adap.DbName() + `" dbConfig.Dbname = "` + adap.DBName() + `"
dbConfig.Port = "` + adap.DbPort() + `" // You probably won't need to change this dbConfig.Port = "` + adap.DBPort() + `" // You probably won't need to change this
// Test Database details // Test Database details
dbConfig.TestHost = "" dbConfig.TestHost = ""
@ -191,6 +191,7 @@ func abortError(err error) {
} }
func handleDatabaseDetails() (adap install.InstallAdapter, ok bool) { func handleDatabaseDetails() (adap install.InstallAdapter, ok bool) {
var dbAdapter string
var dbHost string var dbHost string
var dbUsername string var dbUsername string
var dbPassword string var dbPassword string

View File

@ -1,4 +1,5 @@
echo "Generating the dynamic code" echo "Generating the dynamic code"
go generate go generate
echo "Running tests" echo "Running tests"
go test go test -o GosoraTests
./GosoraTests