-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
919 changed files
with
19,933 additions
and
20,103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,9 @@ _testmain.go | |
|
||
# This project's binaries | ||
sql-runner | ||
*.tmp | ||
coverage.out | ||
coverage.html | ||
|
||
# Vagrant | ||
.vagrant/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
--- | ||
output_paths: | ||
linux : dist/linux/sql-runner | ||
darwin : dist/darwin/sql-runner | ||
windows : dist/windows/sql-runner | ||
|
||
local: | ||
root_dir : <%= ENV['TRAVIS_BUILD_DIR'] %> | ||
|
||
targets: | ||
- type : "bintray" | ||
user : <%= ENV['BINTRAY_SNOWPLOW_GENERIC_USER'] %> | ||
password : <%= ENV['BINTRAY_SNOWPLOW_GENERIC_API_KEY'] %> | ||
|
||
packages: | ||
- repo : "snowplow-generic" | ||
name : "sql-runner" | ||
user_org : "snowplow" | ||
publish : true | ||
override : false | ||
continue_on_conflict: false | ||
version : <%= CMD['cat VERSION'] %> | ||
build_version : <%= ENV['TRAVIS_TAG'] %> | ||
|
||
build_commands: | ||
- gox -osarch=linux/amd64 -output={{ output_paths.linux }} ./sql_runner/ | ||
- gox -osarch=darwin/amd64 -output={{ output_paths.darwin }} ./sql_runner/ | ||
- gox -osarch=windows/amd64 -output={{ output_paths.windows }} ./sql_runner/ | ||
|
||
artifacts: | ||
- prefix : "sql_runner_" | ||
suffix : "_linux_amd64" | ||
type : "zip" | ||
binary_paths: | ||
- "{{ output_paths.linux }}" | ||
- prefix : "sql_runner_" | ||
suffix : "_darwin_amd64" | ||
type : "zip" | ||
binary_paths: | ||
- "{{ output_paths.darwin }}" | ||
- prefix : "sql_runner_" | ||
suffix : "_windows_amd64" | ||
type : "zip" | ||
binary_paths: | ||
- "{{ output_paths.windows }}.exe" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,40 @@ | ||
language: go | ||
go: | ||
- 1.4 | ||
- 1.5 | ||
- 1.6 | ||
- 1.7 | ||
- tip | ||
install: | ||
- export PATH=$PATH:$HOME/gopath/bin | ||
- go get -v -u github.com/kr/godep | ||
- godep get | ||
- godep go build -v ./... | ||
|
||
before_install: | ||
- go get github.com/mattn/goveralls | ||
- go get golang.org/x/tools/cmd/cover | ||
|
||
before_script: | ||
- wget 'https://releases.hashicorp.com/consul/0.5.2/consul_0.5.2_linux_amd64.zip' | ||
- unzip "consul_0.5.2_linux_amd64.zip" | ||
- ./consul --version | ||
- psql -c 'create database sql_runner_tests_1' -U postgres | ||
- psql -c 'create database sql_runner_tests_2' -U postgres | ||
- ./integration/setup_travis.sh | ||
|
||
script: | ||
- ./consul agent -server -bootstrap-expect 1 -data-dir /tmp/consul & | ||
- sleep 5 | ||
- ./integration-tests/consul_travis.bash | ||
- godep go test -i ./... | ||
- godep go test ./... | ||
- test -z "$(go fmt ./...)" | ||
- godep go build -v | ||
- sql-runner -playbook integration-tests/good-postgres.yml -var test_date=`date "+%Y_%m_%d"` -fromStep "Create schema and table" -consul localhost:8500 | ||
- sql-runner -playbook ./integration-tests/good-postgres.yml -var test_date=`date "+%Y_%m_%d"` -fromStep "Create schema and table" | ||
- test "7" = "$(sql-runner -playbook ./integration-tests/bad-mixed.yml &>/dev/null; echo $?)" | ||
- test "6" = "$(sql-runner -playbook ./integration-tests/good-postgres.yml -var test_date=`date "+%Y_%m_%d"` &>/dev/null; echo $?)" | ||
- go build -o sql-runner ./sql_runner/ | ||
- ./integration/run_tests.sh | ||
- go test ./sql_runner/ -v -covermode=count -coverprofile=coverage.out | ||
- $HOME/gopath/bin/goveralls -coverprofile=coverage.out -service=travis-ci | ||
|
||
before_deploy: | ||
- go get github.com/mitchellh/gox | ||
- pip install --user release-manager==0.1.0 | ||
|
||
deploy: | ||
skip_cleanup: true | ||
provider: script | ||
script: release-manager --config .release.yml --check-version --make-version --make-artifact --upload-artifact | ||
on: | ||
condition: '"${TRAVIS_GO_VERSION}" == "1.6"' | ||
tags: true | ||
|
||
addons: | ||
postgresql: "9.3" | ||
postgresql: '9.3' | ||
|
||
env: | ||
global: | ||
- secure: eP2CEhjE6YEgajudRcW6Lsyy92IxAB1KS5Cw0p/defwpouSuZS4NF8+YjcUhfI9sbkobL6KGaL12CYqLWToepQpiDHJ1eRaH+/8HQ+kgqwLxmHptVlqEXhkQPVJL04MvxZqeXocuOluGlWHOHMdlmDTA7eI/tKJtyykIRKyXFAc= | ||
- secure: TP/mMjN910q8M/tknHkPxdYfKl25eQqdSscfTlQlnBxJpQgrgX25WgK1XuNI+IUTTmn1cM/eVRyKvUWflxqzwSUhgWO7s1EcN18WYU7Xl+RkWaoOMjqzV3q5l4M8rDK8LiBM/xrcz/rQMTZnWYm/tJ6+tjTQiuAezZh3bwuMvAo= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
56 changes: 48 additions & 8 deletions
56
Godeps/_workspace/src/github.com/aws/aws-sdk-go/aws/awserr/error.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.