Created
June 12, 2018 12:35
-
-
Save bessey/393158379eae13fb14c7ba53b93b7420 to your computer and use it in GitHub Desktop.
Install libgraphqlparser + ruby gem graphql-libgraphqlparser on Travis without sudo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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