Skip to content

Setting up OQGraph for MariaDB with TravisCI

I’m using OQGraph in a project for determining the shortest path between two graph nodes. Recently, I set up testing on TravisCI and had some trouble getting OQGraph set-up. I’m including the relevant section from my .travis.yml file so other people don’t have to spend the same amount of time. Add the following to your before_script section to set up the apt packages:

before_script:
  - sudo apt-get install software-properties-common
  - sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db
  - sudo add-apt-repository 'deb http://ftp.osuosl.org/pub/mariadb/repo/10.0/ubuntu trusty main'

Then add the following line:

  - mysql -u root -e "install plugin oqgraph soname 'ha_oqgraph.so';"
Published inDevOps

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *