Commit Graph

33 Commits

Author SHA1 Message Date
marpio
bcc896f226 rename example to dev and rm test config (#691) 2018-09-20 16:38:08 -04:00
marpio
29b6b6ffab Minio conf + tests refactoring (#680)
* cleanup tests and change minio port

* fix cleanup

* cleanup

* fix config test

* add comment to travis

* revert to generic minio addr

* fix test

* switch to test config

* adapt timeouts

* use example config

* fix test... again

* add new lines
2018-09-20 21:31:21 +02:00
Marwan Sulaiman
5449649420 Do not use modules in go get of tools (#690)
* Do not use modules in go get of tools

* temp remove validation

* put back verify minus gofmt

* include module off in list
2018-09-20 13:18:51 -04:00
marpio
d6a1cdac84 do not read .env file , sync with the bash version (#689) 2018-09-20 16:23:45 +02:00
Marwan Sulaiman
d03eb7ba03 Travis: do not fetch modules during CI (#677) 2018-09-19 10:29:17 +02:00
Marwan Sulaiman
86d94c3e5a Olympus: stop docker push (#675)
* Olympus: stop docker push

* remove lines completely
2018-09-19 02:04:30 -04:00
marpio
d745dfbae4 Fix end 2 end test (#649)
* set GOPATH to the temp dir so that the cache is cleared

* cleanup

* fix unbound var

* add sudo

* remove sudo
2018-09-13 14:04:10 -07:00
marpio
f25c427239 Fix for Windows 10 (#648)
* ps: add cdefault conf

* init - add config

* add required env vars for win10

* update test_e2e.ps1 to use go build -mod=vendor
2018-09-13 13:57:37 -07:00
Rohan Chakravarthy
0e470d0294 Plumb config - Latest (#627)
* switch proxy to config file

pull in single flight changes

* changes for single-flight

* intermediate stage. All tests passing. pkg still has env refs

* remove all env references

* delete config/env entirely

* fix failing tests

* create the config.toml file as part of dev setup

* create config file only if it doesn't exist

* update Dockerfiles to use config file

* move composing elements to the top

* verbose parameter naming

* newline

* add flag for config file path

* update docs with config file flag

* remove unnecessary nil check

* use filepath.join

* rename redis port to address

* fix path.join

* fix issues after merge

* add vendor dir
2018-09-11 15:04:20 -07:00
Brent Pendergraft
a400d16674 remove buffalo dev in favor of go build in e2e test script (#636)
* remove buffalo dev in favor of go build in e2e test script

* re-write comment for clarity
2018-09-07 08:51:20 +02:00
Komu Wairagu
748ed7dda9 Remove dep files (#378)
* remove vendor directory
athens will be using Go modules for dependency management

* remove Gopkg.* files. athens will be using Go modules for dependency management

* add note about Go version required for developing on Athens
To use Go modules for dep management, you require atleast Go version 1.11

* update documentation regarding supported version of Go

* dont install dep

* re-add vendor directory
go mod vendor

* use vendored directory to carry out Go commands

* remove the use of -mod=vendor
this is necessary because;
1. we are running ci in a travis with a matrix of GO111MODULE=on & GO111MODULE=auto
and -mod=vendor is not available as an option in GO111MODULE=auto(inside GOPATH)

* rm vendor

* run go mod tidy
this is beacuse the master branch had changes to Gopkg.lock

* match gopkg.in/go-playground/validator.v9 version
with master branhc

* go mod tidy

* go mod vendor
so as to vendor the new changes that were added in master

* set GO111MODULE=on globally in ci

* build with -mod=vendor when building docker image

* use -mod=vendor to avoid getting deps from vcs in ci

* use -mod=vendor in .drone.yml

* use go1.11 in drone.yml
2018-09-02 11:54:42 -04:00
lpdyck
c4417371ef Fix powershell scripts (#615)
* add check_deps.ps1

* fix check_gofmt select-string regex pattern

* capitalize JoinPath

* fix typo

* fail check_deps.ps1 on error
2018-09-01 11:59:55 +02:00
Arthur Mello
e5ce3f7c6e Set a default value for ATHENS_MONGO_CONNECTION_STRING env var (#580)
* Set a default value for ATHENS_MONGO_CONNECTION_STRING env var

- ATHENS_MONGO_CONNECTION_STRING will default to mongodb://127.0.0.1:27017 if not set

* Fix Get function call

* Update user of env.MongoConnectionString
2018-08-28 11:56:15 +02:00
Komu Wairagu
69a5340c91 update to go1.11 (#563)
* update travis to Go 1.11

* update check_deps ci script
ci for checking dependencies should now check Go module files and use go mod verify

* remove uneeded comment

* set GO111MODULE

* debug GO111MODULE propagation

* rm dep installation

* debug GO111MODULE propagation

* rm debug statements

* use Go point releases in ci

* remove references to Go1.11 RCs

* run ci with GO111MODULE auto and also on

* use matrix
2018-08-28 08:46:12 +02:00
marpio
b62ebddb1b fix mongo env var name after rename (#578) 2018-08-27 14:11:32 -07:00
Rob j Loranger
37f0687761 No conflicts (#569)
* add script and step to verify stage of makefile

* this commit should fail the build

* build should now pass

* fix typo in excludes for grep

* better output on failure

also removes tilde from initial regex, git does not use tilde in diffs
adds output of filenames with detected regex on failure
2018-08-27 10:48:24 -06:00
marpio
1de9ea4c2a Powershell - clean up ENV after tests (#568)
* clean up ENV after tests
2018-08-26 22:40:28 +02:00
marpio
fa16c6950b Powershell scripts (#525)
* port scripts to ps

* remove ps core features

* init script

* make it work on ps 5.0

* sync with make file

* cleanup

* cleanup

* review feedback

* newline
2018-08-24 19:44:36 +02:00
Carolyn Van Slyck
26e8197b82 Publish docker images during CI builds (#544)
master builds publish using the git describe output  as the immutable tag and
canary for the mutable tag. Examples:

  gomods/proxy:abc1234
  gomods/proxy:canary

tagged builds publish using the tag as the immutable tag, which is
usually going to be a semver value and with latest for the mutable tag.
Examples:

  gomods/proxy:v1.0.0
  gomods/proxy:latest

branch builds publish using the git describe output as the immutable tag and the
branch name for the mutable tag. Examples:

  gomods/proxy:def4567
  gomods/proxy:beta-1
2018-08-24 10:36:42 -05:00
Manu Gupta
3a8c6429e9 Removal of cdn rdbms driver and pop support from olympus (#551)
* Inital removal of cdn rdbms driver and pop support from olympus

* Update travis and other unit test scripts

* Remove postgres from Makefile

* Update comments and remove function that is not required

* Update .env file

* clean commented code

* Update docs to remove references to rdbms

* Remove pop and run dep ensure to make sure that the tests pass without pop

* Keeping GO_ENV=test for parametter logging
2018-08-22 20:10:19 +02:00
Manu Gupta
c0635b748c Remove pop from Proxy & RDBMS storage getter (#511)
* Remove pop from models for now

* Remove rdbms storage from pkg/storage

* Completely remove pop

* Some improvements to tests

- Not sourcing from cmd/proxy/.env, because that doesn't export any variables
- Removing mysql support (I feel like 1 database is enough)
- Pruning networks on teardown

I'm happy to split these changes up into separate PRs - it's the end of the day for me so I wanted to get everything in 😄

* update to point to test instance

* Update databasy.yml for travis??

* Remove database.yml

* Do not use db migrations and creation

* Remove pop dependency from cdn

* add schema for olympus assuming cdn driver is part of olympus

* Move CI/CD and test scripts to point pop to olympus

* Update database.yml and keep it only for olympus

* Add migrations to travis

* Add debug logs to see what travis is doing

* Update travis to use olympus database.yml

* Moarrrr logs to see where travis is pointint the db towards

* Change env to test

* Use test as the default environment if not specified otherwise

* Check if test new rdbms storage succeeds

* Try to see which connection string rdbms test suite is using on travis

* Update db tags for cdn driver

* create db by using travis go_env

* Remove sql from database config as it is removed from docker-compose

* Remove extra logs that I missed

* Add newline

* remove models.go and test file from proxy

* removing extraneous network prune from Makefile
2018-08-21 19:21:40 -04:00
Rob j Loranger
43d7501420 Update e2e tests to not use sudo (#477)
* Update e2e tests to not use sudo

Using a system temporary directory via mktemp we can place our GOMOD_CACHE
in a place that does not require root permission to clear.

As well we use the environment variable for GO_BINARY_PATH to point to
a module compatible go version. At this time, 1.11beta3.

* add GO_BINARY_PATH to travis

* Use conditional GO_BINARY_PATH

Co-authored-by: robbie <hello@robloranger.ca>
Co-authored-by: carolyn <me@carolynvanslyck.com>

* no longer needs to set GO_BINARY_PATH in env
2018-08-15 19:16:14 +02:00
Fazlul Shahriar
5a445aacf8 scripts/get_buffalo.sh: use 'go get' to install outside of Travis (#415)
Since CONTRIBUTING.md and DEVELOPMENT.md asks the reader to run
'make setup-dev-env', which runs this script, it needs to be support
other platforms besides Linux.

Helps #397
2018-08-13 18:21:31 -07:00
Michal Pristas
5260639171 remove tempdir (#460) 2018-08-13 15:06:01 +02:00
Andrey Dyachkov
051f3884e1 Bring more clarity on how to run unit tests (#449)
* The commit brings more clarity on how to run unut tests.

The commit chages behaivour of `make test-unit` by adding sourcing of
env vars. Documentation is updated to provide more clarity on how to run
unit tests.

* changed list of commands to run before unit tests

* moved env vars to .env

* removed dduplicated env var

* returned conventional file name in script

* link to DEVELOPMENT.md

* fixed typo

* moved env var export to script

* removed export of tmp folder
2018-08-11 12:12:24 -07:00
Dinesh Kumar
4cc1b71007 Benchmark storages (#426)
* Adding benchmark for mongo and fs

* Adding delete, exists, save with other storages

* Fixing typos, adding nonexistent module exits benchmark

* Fixing delete operation in delete benchmark

* Separating non testing existing modules benchmark, shortening the benchmark name

* running benchmark in ci

* Revert "running benchmark in ci" - mongo index make duplicate records to
fail
idempotent, will fix in a separate PR.

This reverts commit f7d78262d2.

* Adding reset timer, fixing duplicate record issue

* Revert "Revert "running benchmark in ci" - mongo index make duplicate records to"

This reverts commit 40a7b33199.

* removing benchmark from ci

* Adding operation for returning errors
2018-08-10 01:34:42 -04:00
Rob j Loranger
dd16ce86f1 Fix up e2e script (#410)
* small fixes

* set GO111MODULES=auto

* set GO111MODULES=on after running buffalo

* use travis for go1.11beta3 not build from source

* set GO111MODULES=on before running buffalo

* revert GO111MODULE placement to after buffalo dev, comment w/ issue link

* oops

* spaces too
2018-08-09 16:09:39 -07:00
Marwan Sulaiman
44625459fc Download: move cache location (#404)
* Download: move cache location

* beta3

* trying differnet repo

* avoid go breaking stuff
2018-08-04 11:29:30 -07:00
Carolyn Van Slyck
f1efadeed3 Run E2E tests during CI (#363)
* Use go1.11beta2 instead of vgo

* Make the go 1.11 source directory configurable

Don't error out if it's been cloned already

* Add end-to-end (e2e) tests

* Make sure the repo bin is on the path

* Call the dev target from setup-dev-env

* Use the same dev setup on travis and locally
2018-08-03 16:40:33 +02:00
Michal Pristas
1c769b5adb fetch origin master (#389) 2018-08-03 07:19:45 -07:00
Carolyn Van Slyck
21cd7239db Make it easier to run all the same commands that Travis does (#362)
* Make it easier to run all the same commands that Travis does

* Add target to install dev tools

* Dirty a temp directory instead of the repo root

* Explain our new make targets

* Set a TMPDIR on travis

* Fix comment
2018-07-30 13:27:40 -07:00
Rob j Loranger
6ebc8f0c85 add check for gopkgs to run dep ensure on changes (#268)
* add check for gopkgs to run dep ensure on changes

also remove windows line endings on .travis.yml again

* clean up script
2018-07-14 20:48:09 +02:00
Aaron Schlesinger
91b4f9c876 WIP: always downloading a fixed buffalo CLI version (#230)
* always downloading a fixed buffalo CLI version

As of this writing, latest is v0.12.3

* moving the buffalo binary to a permitted place

also making the binary executable

* composing buffalo URL with tar_gz env var
2018-07-09 14:23:45 -07:00