Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for additional extensions (pgtap) #15

Open
rngadam opened this issue Jul 22, 2018 · 3 comments
Open

Add support for additional extensions (pgtap) #15

rngadam opened this issue Jul 22, 2018 · 3 comments

Comments

@rngadam
Copy link

rngadam commented Jul 22, 2018

I filed a support for Heroku PostgreSQL to add pgtap (http://pgtap.org/documentation.html)

but maybe this is easier and more relevant to do in this buildpack.

  • How would I go about adding extensions to the buildpack?
@rngadam
Copy link
Author

rngadam commented Jul 22, 2018

OK, I'm able to build the extension separately:

heroku ci:debug and then:

git clone https://github.com/theory/pgtap.git  
cd pgtap 
make
#make installcheck
make install

@rngadam
Copy link
Author

rngadam commented Jul 22, 2018

I made this part of app.json:

{
  "environments": {
    "test": {
      "env": {
      },
      "buildpacks": [
        {
          "url": "https://github.com/heroku/heroku-buildpack-ci-postgresql"
        }
      ],
      "scripts": {
        "test-setup": "./heroku-test-setup.sh",
        "test": "cd server; ./test.sh $DATABASE_URL"
      }
    }
  }
}

heroku-test-setup.sh is:

git clone https://github.com/theory/pgtap.git
cd pgtap
make
#make installcheck
make install
cd ../server
./setup.sh $DATABASE_URL

@mping
Copy link

mping commented May 13, 2019

Would be great to be able to install postgis too. Unfortunately, postgis requires a couple other extra libs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants