Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save bessey/393158379eae13fb14c7ba53b93b7420 to your computer and use it in GitHub Desktop.
Save bessey/393158379eae13fb14c7ba53b93b7420 to your computer and use it in GitHub Desktop.
Install libgraphqlparser + ruby gem graphql-libgraphqlparser on Travis without sudo
# Install libgraphql parser
if [ ! -d $HOME/gql/usr/local/lib ]
then
wget https://github.com/graphql/libgraphqlparser/archive/v0.7.0.tar.gz
tar -xzvf v0.7.0.tar.gz
cd libgraphqlparser-0.7.0/ && cmake . && make && make DESTDIR=$HOME/gql install && cd $TRAVIS_BUILD_DIR
else
echo "libgraphqlparser install detected"
fi
# Note on < 1.3.0 replace "--with-graphqlparser-X" with "--with-graphql-X"
bundle config build.graphql-libgraphqlparser \
--with-graphqlparser-lib=$HOME/gql/usr/local/lib \
--with-graphqlparser-include=$HOME/gql/usr/local/include/graphqlparser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment