Added Vagrantfile for PostgreSQL integration tests

This commit is contained in:
Joona Hoikkala
2016-11-23 22:12:42 +02:00
parent 38ff024ad4
commit 9a45664b4b
3 changed files with 45 additions and 0 deletions
Executable
+4
View File
@@ -0,0 +1,4 @@
#!/bin/sh
sudo -u postgres createdb acmedns
sudo -u postgres psql -c "CREATE USER acmedns WITH PASSWORD 'acmedns'"
sudo -u postgres psql -c "GRANT ALL PRIVILEGES ON DATABASE acmedns TO acmedns"
+7
View File
@@ -0,0 +1,7 @@
#!/bin/sh
source /home/vagrant/.profile
rm -rf /home/vagrant/src/acme-dns/*
cp -R /vagrant/* /home/vagrant/src/acme-dns/
cd /home/vagrant/src/acme-dns/
go get
go test -postgres