1#!/usr/bin/env bash 2 3set -e 4 5export LIBXML_DIR=$(pwd) 6export MAKEFLAGS=-j$(nproc) 7export NOCONFIGURE=1 8./autogen.sh 9 10git clone https://github.com/sparklemotion/nokogiri 11cd nokogiri 12bundle install 13bundle exec rake compile -- --with-xml2-source-dir=${LIBXML_DIR} 14bundle exec rake test 15