Added Vagrantfile for PostgreSQL integration tests
This commit is contained in:
Executable
+4
@@ -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"
|
||||
Executable
+7
@@ -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
|
||||
Reference in New Issue
Block a user