Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PMM-4825 New development environment. #31

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @AlekSi
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/.idea/
/.vscode/

proxysql_exporter
coverage.txt
.idea
25 changes: 21 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,23 @@
dist: xenial
dist: bionic
language: go

services:
- docker

go:
- 1.12.x
- master
- 1.13.x
# - master

matrix:
fast_finish: true
allow_failures:
- go: master

# skip non-trunk PMM-XXXX branch builds, but still build pull requests
branches:
except:
- /^PMM\-\d{4}/

cache:
directories:
Expand All @@ -18,8 +29,14 @@ before_cache:
# - go clean -cache

env:
- PROXYSQL_IMAGE=percona/proxysql:1.2.1
- PROXYSQL_IMAGE=perconalab/proxysql:1.3.6
global:
- MASTER_IMAGE=percona:5.7
- SLAVE_IMAGE=percona:5.7
- CODECOV_ENV=PROXYSQL_IMAGE,PROXYSQL_CNF,PROXYSQL_CNF_DEST,MASTER_IMAGE,SLAVE_IMAGE

matrix:
- PROXYSQL_IMAGE=percona/proxysql:latest PROXYSQL_CNF=proxysql1.cnf PROXYSQL_CNF_DEST=/etc/proxysql.cnf
- PROXYSQL_IMAGE=percona/proxysql2:latest PROXYSQL_CNF=proxysql2.cnf PROXYSQL_CNF_DEST=/etc/proxysql/proxysql.cnf

before_script:
- docker --version
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ The easiest way to make a local development setup is to use Docker Compose.
```
docker-compose up
make all testall
export DATA_SOURCE_NAME='admin:admin@tcp(127.0.0.1:16032)/'
export DATA_SOURCE_NAME='proxysql-admin:proxysql-admin@tcp(127.0.0.1:6032)/'
./proxysql_exporter
```

Expand Down
130 changes: 69 additions & 61 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@
go-tests = true
non-go = true
unused-packages = true

[[constraint]]
name = "github.com/percona/exporter_shared"
branch = "develop"
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,10 @@ promu:
GOARCH=$(subst x86_64,amd64,$(patsubst i%86,386,$(subst aarch64,arm64,$(shell uname -m)))) \
$(GO) get -u github.com/prometheus/promu

env-up: ## Start development environment.
docker-compose up --force-recreate --renew-anon-volumes --remove-orphans

env-down: ## Stop development environment.
docker-compose down --volumes --remove-orphans

.PHONY: all style format build test vet tarball docker promu
2 changes: 1 addition & 1 deletion NOTICE
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Percona ProxySQL Exporter.
Copyright 2016-2017 Percona LLC
Copyright 2016-2019 Percona LLC
Loading