-
Notifications
You must be signed in to change notification settings - Fork 15
Guide for developers
Josh edited this page Dec 13, 2016
·
9 revisions
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 -o sql-runner ./sql_runner/
Assuming Building complete:
- Set the root dir of the project as an environment variable. If you are building out of Vagrant:
export TRAVIS_BUILD_DIR=/vagrant
- Run the setup script for local development:
./integration/setup_local.sh
- Run the project test suite:
godep go test ./sql_runner/
- Build SQL Runner:
godep go build -o sql-runner ./sql_runner/
- Run the integration test suite:
./integration/run_tests.sh
This is handled through CI/CD on Travis.