Skip to content

Commit

Permalink
Fix release
Browse files Browse the repository at this point in the history
  • Loading branch information
velo committed Apr 13, 2018
1 parent bef825a commit b59d99a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .rultor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ merge:
sudo sh -c 'echo "host all all localhost trust" > /etc/postgresql/9.3/main/pg_hba.conf'
sudo sh -c 'echo "local all all trust" >> /etc/postgresql/9.3/main/pg_hba.conf'
sudo service postgresql start
sleep 30
sleep 30s
psql -c 'create database nativejson;' -U postgres
mvn install -Pci -B --settings ../settings.xml
Expand All @@ -40,13 +40,7 @@ env:

release:
script: |-
sudo apt-get update -y
sudo apt-get install -y postgresql-9.3
sudo sh -c 'echo "host all all localhost trust" > /etc/postgresql/9.3/main/pg_hba.conf'
sudo sh -c 'echo "local all all trust" >> /etc/postgresql/9.3/main/pg_hba.conf'
sudo service postgresql start
sleep 30
psql -c 'create database nativejson;' -U postgres
./initialize_postgres.sh
mvn versions:set "-DnewVersion=${tag}"
git commit -am "${tag}"
mvn deploy -Pci -B -Prelease --settings ../settings.xml -Dgpg.homedir=..
Expand Down
13 changes: 13 additions & 0 deletions initialize_postgres.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash
# install postgresql, wait for it to start and then create test database

set -x

sudo sh -c 'echo "host all all localhost trust" > /etc/postgresql/9.3/main/pg_hba.conf'
sudo sh -c 'echo "local all all trust" >> /etc/postgresql/9.3/main/pg_hba.conf'
sudo rm /usr/bin/psql
sudo ln -s /usr/lib/postgresql/9.3/bin/psql /usr/bin/psql
sudo service postgresql start
sleep 30s
sudo service postgresql status
psql -c 'create database nativejson;' -U postgres

0 comments on commit b59d99a

Please sign in to comment.