Sha256: 3b799c65db50f26d645822cab4559efa5af27e2e76ddd2a11546367fed1584ed

Contents?: true

Size: 1007 Bytes

Versions: 4

Compression:

Stored size: 1007 Bytes

Contents

#! /usr/bin/env bash
#
#  script to build gems for all relevant platforms:
#  - MRI et al (standard gem)
#  - windows (x86-mingw32 and x64-mingw32)
#  - jruby
#

# Load RVM into a shell session *as a function*
if [[ -s "$HOME/.rvm/scripts/rvm" ]] ; then
    source "$HOME/.rvm/scripts/rvm"
elif [[ -s "/usr/local/rvm/scripts/rvm" ]] ; then
    source "/usr/local/rvm/scripts/rvm"
else
    echo "ERROR: An RVM installation was not found.\n"
fi

set -o errexit

# check that we have the latest jruby
rvm use jruby
rvm use ruby

rm -rf tmp pkg
bundle exec rake clean clobber

# holding pen
rm -rf gems
mkdir -p gems

# windows
bundle exec rake gem:windows
cp -v pkg/nokogiri*{x86,x64}-mingw32*.gem gems

# MRI
bundle exec rake clean
bundle exec rake gem
cp -v pkg/nokogiri*.gem gems

# jruby
bundle exec rake clean clobber
bundle exec rake generate

rvm use jruby
gem install bundler --conservative
bundle install --quiet --local || bundle install
bundle exec ruby -S rake gem
cp -v pkg/nokogiri*java.gem gems

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
nokogiri-1.9.0.rc1 build_all
nokogiri-1.9.0.rc1-x86-mingw32 build_all
nokogiri-1.9.0.rc1-x64-mingw32 build_all
nokogiri-1.9.0.rc1-java build_all