2022-05-19 04:43:33 +00:00
#!/bin/bash
2021-10-11 16:42:05 +00:00
2022-07-12 08:10:45 +00:00
# Remove any existing containers / volumes
docker-compose down --remove-orphans --volumes
2022-05-05 06:03:10 +00:00
2022-07-12 08:10:45 +00:00
# Spin up DB and run migrations
docker-compose up -d migrations ipld-eth-db
sleep 30
2022-05-19 04:43:33 +00:00
# Run unit tests
go clean -testcache
2022-07-12 08:10:45 +00:00
PGPASSWORD = password DATABASE_USER = vdbm DATABASE_PORT = 8077 DATABASE_PASSWORD = password DATABASE_HOSTNAME = 127.0.0.1 DATABASE_NAME = vulcanize_testing make test
2022-05-19 04:43:33 +00:00
# Clean up
2022-07-12 08:10:45 +00:00
docker-compose down --remove-orphans --volumes
2022-05-19 04:43:33 +00:00
rm -rf out/