Permalink
Browse files

fix #73: add Go 1.10; fix #72: add postgres config; update dependencies

  • Loading branch information...
kamilsk committed Feb 19, 2018
1 parent e281d78 commit 5c2ff5c230601c512cf0b6d44bb5cfb9087dcebf
Showing with 117 additions and 26 deletions.
  1. +1 −1 .goreleaser.yml
  2. +10 −4 .travis.yml
  3. +52 −20 Gopkg.lock
  4. +1 −1 README.md
  5. +53 −0 env/etc/postgresql.conf
@@ -38,7 +38,7 @@ build:
- linux
- windows
ldflags: -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}
main: .
main: .

checksum: { name_template: checksums.txt }

@@ -1,8 +1,10 @@
language: go

go:
- 1.9.x
- master
- 1.x
- 1.9.x
- 1.10.x

matrix:
allow_failures:
@@ -12,11 +14,14 @@ matrix:
sudo: false

before_install:
- wget -q -O dep https://github.com/golang/dep/releases/download/v0.4.1/dep-linux-amd64
- export DEP_VERSION=0.4.1
- export GO_TEST_COVERAGE_FILENAME='coverage.out'

- wget -q -O dep https://github.com/golang/dep/releases/download/v${DEP_VERSION}/dep-linux-amd64
- chmod +x dep && mv dep "${GOPATH}"/bin
- make tools
- go get github.com/mattn/goveralls
- export GO_TEST_COVERAGE_FILENAME='coverage.out'

- make tools

install:
- make deps generate
@@ -27,6 +32,7 @@ script:
after_success:
- goveralls -service=travis-ci -coverprofile="${GO_TEST_COVERAGE_FILENAME}"
- echo $TRAVIS_GO_VERSION ":" $TRAVIS_TAG
# TODO wait https://github.com/travis-ci/gimme/pull/130
- if [[ $TRAVIS_GO_VERSION == 1.9* ]] && [ -n "$TRAVIS_TAG" ]; then curl -sL https://git.io/goreleaser | bash; fi

notifications:

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -116,5 +116,5 @@ $ egg bitbucket.org/kamilsk/form-api
- [ ] v4: API v2
- [ ] v5: Extensibility
- [ ] FormA, SaaS
- tested on Go 1.9
- tested on Go 1.9 and 1.10
- made with ❤️ by [OctoLab](https://www.octolab.org/)
@@ -0,0 +1,53 @@
# Generated by http://pgconfigurator.cybertec.at

# Connectivity
max_connections = 100
superuser_reserved_connections = 3

# Loading libraries and preventing spinlock contentions
shared_preload_libraries = 'pg_stat_statements'
huge_pages = off

# Memory Settings
shared_buffers = '256 MB'
work_mem = '32 MB'
maintenance_work_mem = '320 MB'

effective_cache_size = '1 GB'
effective_io_concurrency = 100

# Background writer
bgwriter_delay = 200ms
bgwriter_lru_maxpages = 100
bgwriter_lru_multiplier = 2.0
bgwriter_flush_after = 0

# Replication
wal_level = replica
max_wal_senders = 10
synchronous_commit = on
wal_keep_segments = 130

# WAL writing
wal_compression = on
wal_buffers = -1
wal_writer_delay = 200ms
wal_writer_flush_after = 1MB

# Checkpointing:
checkpoint_timeout = '15 min'
max_wal_size = '1024 MB'
min_wal_size = '512 MB'
checkpoint_completion_target = 0.9

# Parallel queries:
max_worker_processes = 1
max_parallel_workers_per_gather = 0
max_parallel_workers = 1

# General notes:
# We recommend not to use read-only replicas for scaling
# Note that not all settings are automatically tuned.
# Consider contacting experts at
# https://www.cybertec-postgresql.com
# for more professional expertise.

0 comments on commit 5c2ff5c

Please sign in to comment.