Repository: incubator-wave Updated Branches: refs/heads/wavy ba6debf8c -> ac0393d91
change to latest bazel and add build options for server and testing. Project: http://git-wip-us.apache.org/repos/asf/incubator-wave/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-wave/commit/ac0393d9 Tree: http://git-wip-us.apache.org/repos/asf/incubator-wave/tree/ac0393d9 Diff: http://git-wip-us.apache.org/repos/asf/incubator-wave/diff/ac0393d9 Branch: refs/heads/wavy Commit: ac0393d91653f9ed04353862a094f71703cc13bc Parents: ba6debf Author: wisebaldone <[email protected]> Authored: Thu Apr 28 09:25:07 2016 +1000 Committer: wisebaldone <[email protected]> Committed: Thu Apr 28 09:25:07 2016 +1000 ---------------------------------------------------------------------- .travis.yml | 10 +++++----- BUILD | 4 ++++ WORKSPACE | 10 ++++++++++ server/BUILD | 11 +++++++++++ server/main_test.go | 8 ++++++++ server/vendor/README.md | 5 +++++ 6 files changed, 43 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-wave/blob/ac0393d9/.travis.yml ---------------------------------------------------------------------- diff --git a/.travis.yml b/.travis.yml index e17fdd4..df53a27 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,10 @@ jdk: oraclejdk8 -go: 1.6.1 before_install: - - wget 'https://github.com/bazelbuild/bazel/releases/download/0.2.1/bazel-0.2.1-installer-linux-x86_64.sh' - - chmod +x bazel-0.2.1-installer-linux-x86_64.sh - - ./bazel-0.2.1-installer-linux-x86_64.sh --user + - wget 'https://github.com/bazelbuild/bazel/releases/download/0.2.2b/bazel-0.2.2b-installer-linux-x86_64.sh' + - chmod +x bazel-0.2.2b-installer-linux-x86_64.sh + - ./bazel-0.2.2b-installer-linux-x86_64.sh --user script: - - bazel build + - bazel build //server:server + - bazel test //server:test http://git-wip-us.apache.org/repos/asf/incubator-wave/blob/ac0393d9/BUILD ---------------------------------------------------------------------- diff --git a/BUILD b/BUILD new file mode 100644 index 0000000..cd450ac --- /dev/null +++ b/BUILD @@ -0,0 +1,4 @@ +# Sets the Golang root dir. +load("@io_bazel_rules_go//go:def.bzl", "go_prefix") + +go_prefix("server") http://git-wip-us.apache.org/repos/asf/incubator-wave/blob/ac0393d9/WORKSPACE ---------------------------------------------------------------------- diff --git a/WORKSPACE b/WORKSPACE index e69de29..12d7520 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -0,0 +1,10 @@ +########################## +# Golang specific includes +########################## +git_repository( + name = "io_bazel_rules_go", + remote = "https://github.com/bazelbuild/rules_go.git", + commit = "f276902dedd090848e913350d66bb47bac32ba70", +) +load("@io_bazel_rules_go//go:def.bzl", "go_repositories") +go_repositories() http://git-wip-us.apache.org/repos/asf/incubator-wave/blob/ac0393d9/server/BUILD ---------------------------------------------------------------------- diff --git a/server/BUILD b/server/BUILD index e69de29..2a8868b 100644 --- a/server/BUILD +++ b/server/BUILD @@ -0,0 +1,11 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_test") + +go_binary ( + name = "server", + srcs = glob(["**/*.go"]) +) + +go_test ( + name = "test", + srcs = glob(["**/*_test.go"]) +) http://git-wip-us.apache.org/repos/asf/incubator-wave/blob/ac0393d9/server/main_test.go ---------------------------------------------------------------------- diff --git a/server/main_test.go b/server/main_test.go new file mode 100644 index 0000000..1fc7a73 --- /dev/null +++ b/server/main_test.go @@ -0,0 +1,8 @@ +package main + +import ( + "testing" +) + +func TestExample( t *testing.T) { +} http://git-wip-us.apache.org/repos/asf/incubator-wave/blob/ac0393d9/server/vendor/README.md ---------------------------------------------------------------------- diff --git a/server/vendor/README.md b/server/vendor/README.md new file mode 100644 index 0000000..b24a53e --- /dev/null +++ b/server/vendor/README.md @@ -0,0 +1,5 @@ +# Vendoring + +The following files are vendored versions of libraries. Vendoring is important +is ensuring a stable development and ensuring the complete application +is available for the developer offline.
