Skip to content

Commit

Permalink
breaking: rename repo to aerogear-app-metrics (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dara Hayes authored Feb 26, 2018
1 parent a157d8e commit 58bd760
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 20 deletions.
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
#### expecting it in the form of
#### /go/src/github.com/circleci/go-tool
#### /go/src/bitbucket.org/circleci/go-tool
working_directory: /go/src/github.com/aerogear/aerogear-metrics-api
working_directory: /go/src/github.com/aerogear/aerogear-app-metrics
steps:
- run: go get github.com/mattn/goveralls
- run: go get -u github.com/golang/dep/cmd/dep
Expand All @@ -36,12 +36,12 @@ jobs:
ignore: /.*/
docker:
- image: circleci/golang:1.9
working_directory: /go/src/github.com/aerogear/aerogear-metrics-api
working_directory: /go/src/github.com/aerogear/aerogear-app-metrics
steps:
- run: go get github.com/goreleaser/goreleaser
- checkout
- run: make release
- run: make docker_build_release
- run: make docker_push_release
- store_artifacts:
path: dist
path: dist
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ Ensure you have the following installed in your machine:
In order to develop the Metrics API, its source code should be contained inside your `$GOPATH` and in the proper directory under `$GOPATH/src/`:

```bash
git clone https://github.com/aerogear/aerogear-metrics-api.git $GOPATH/src/github.com/aerogear/aerogear-metrics-api
cd aerogear-metrics-api/
git clone https://github.com/aerogear/aerogear-app-metrics.git $GOPATH/src/github.com/aerogear/aerogear-app-metrics
cd aerogear-app-metrics/
```

See the [Go wiki](https://github.com/golang/go/wiki/GOPATH) for more information.
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# AeroGear Metrics API
# AeroGear App Metrics

This is the server component of the AeroGear Metrics Service. It is a RESTful API that allows mobile clients to send metrics data which will get stored in a PostgreSQL database. The service is written in [Golang](https://golang.org/).

Expand All @@ -25,7 +25,7 @@ $ echo $GOPATH
Then clone this repository by running:

```
git clone [email protected]:aerogear/aerogear-metrics-api.git $GOPATH/src/github.com/aerogear/aerogear-metrics-api
git clone [email protected]:aerogear/aerogear-app-metrics.git $GOPATH/src/github.com/aerogear/aerogear-app-metrics
```

And finally install dependencies:
Expand Down
8 changes: 4 additions & 4 deletions cmd/metrics-api/metrics-api.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"log"
"net/http"

"github.com/aerogear/aerogear-metrics-api/pkg/config"
"github.com/aerogear/aerogear-metrics-api/pkg/dao"
"github.com/aerogear/aerogear-metrics-api/pkg/mobile"
"github.com/aerogear/aerogear-metrics-api/pkg/web"
"github.com/aerogear/aerogear-app-metrics/pkg/config"
"github.com/aerogear/aerogear-app-metrics/pkg/dao"
"github.com/aerogear/aerogear-app-metrics/pkg/mobile"
"github.com/aerogear/aerogear-app-metrics/pkg/web"
)

func main() {
Expand Down
9 changes: 5 additions & 4 deletions makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
PKG = github.com/aerogear/aerogear-metrics-api
APP_NAME = aerogear-app-metrics
PKG = github.com/aerogear/$(APP_NAME)
TOP_SRC_DIRS = pkg
PACKAGES ?= $(shell sh -c "find $(TOP_SRC_DIRS) -name \\*_test.go \
-exec dirname {} \\; | sort | uniq")
Expand All @@ -9,10 +10,10 @@ BINARY ?= metrics
# This follows the output format for goreleaser
BINARY_LINUX_64 = ./dist/linux_amd64/metrics

DOCKER_LATEST_TAG = aerogear/aerogear-metrics-api:latest
DOCKER_MASTER_TAG = aerogear/aerogear-metrics-api:master
DOCKER_LATEST_TAG = aerogear/$(APP_NAME):latest
DOCKER_MASTER_TAG = aerogear/$(APP_NAME):master
RELEASE_TAG ?= $(CIRCLE_TAG)
DOCKER_RELEASE_TAG = aerogear/aerogear-metrics-api:$(RELEASE_TAG)
DOCKER_RELEASE_TAG = aerogear/$(APP_NAME):$(RELEASE_TAG)

LDFLAGS=-ldflags "-w -s -X main.Version=${TAG}"

Expand Down
2 changes: 1 addition & 1 deletion pkg/dao/dao_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package dao
import (
"testing"

"github.com/aerogear/aerogear-metrics-api/pkg/config"
"github.com/aerogear/aerogear-app-metrics/pkg/config"
"github.com/stretchr/testify/mock"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/dao/db_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package dao
import (
"testing"

"github.com/aerogear/aerogear-metrics-api/pkg/config"
"github.com/aerogear/aerogear-app-metrics/pkg/config"
)

func TestConnect(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/web/interfaces.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package web

import "github.com/aerogear/aerogear-metrics-api/pkg/mobile"
import "github.com/aerogear/aerogear-app-metrics/pkg/mobile"

type MetricsServiceInterface interface {
Create(m mobile.Metric) (mobile.Metric, error)
Expand Down
2 changes: 1 addition & 1 deletion pkg/web/metricsHandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"net/http"

"github.com/aerogear/aerogear-metrics-api/pkg/mobile"
"github.com/aerogear/aerogear-app-metrics/pkg/mobile"
"github.com/darahayes/go-boom"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/web/metricsHandler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"net/http"
"net/http/httptest"

"github.com/aerogear/aerogear-metrics-api/pkg/mobile"
"github.com/aerogear/aerogear-app-metrics/pkg/mobile"
"github.com/stretchr/testify/assert"
mock "github.com/stretchr/testify/mock"
)
Expand Down

0 comments on commit 58bd760

Please sign in to comment.