mirror of
https://github.com/gomods/athens
synced 2026-02-03 12:10:32 +00:00
* 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
20 lines
421 B
Bash
Executable File
20 lines
421 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# test_unit.sh
|
|
|
|
if [ -z ${ATHENS_MONGO_STORAGE_URL} ]; then
|
|
export ATHENS_MONGO_STORAGE_URL="mongodb://127.0.0.1:27017"
|
|
fi
|
|
|
|
if [ -z ${GO_ENV} ]; then
|
|
export GO_ENV="test"
|
|
fi
|
|
|
|
if [ -z ${POP_PATH} ]; then
|
|
export POP_PATH="${PWD}/cmd/olympus"
|
|
fi
|
|
|
|
# Run the unit tests with the race detector and code coverage enabled
|
|
set -xeuo pipefail
|
|
go test -race -coverprofile cover.out -covermode atomic ./...
|