We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Assuming git, [Vagrant] vagrant-install and [VirtualBox] virtualbox-install installed:
host> git clone https://github.com/snowplow/sql-runner host> cd sql-runner host> vagrant up && vagrant ssh guest> cd /opt/gopath/src/github.com/snowplow/sql-runner guest> godep go build
Assuming Building complete:
pg_hba.conf
guest> sudo sed -i -re 's/^local\s*all\s*postgres\s*peer/local all postgres trust/' /etc/postgresql/9.4/main/pg_hba.conf
guest> sudo service postgresql restart
guest> psql -c "alter role postgres password '';" -U postgres
guest> psql -c "create database sql_runner_tests_1;" -U postgres
guest> psql -c "create database sql_runner_tests_2;" -U postgres
You can now run an integration test:
guest> ./sql-runner -playbook ./integration/resources/good-postgres.yml -var test_date=`date "+%Y_%m_%d"`
Assuming Travis travis is green and versions updated:
host> vagrant push
This will build an individual artifact for Windows, OSX and Linux all in 64 bit. All artifacts are stored in the dist/ directory.
dist/