File: jruby

package info (click to toggle)
ruby-concurrent 1.3.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,136 kB
  • sloc: ruby: 30,875; java: 6,128; ansic: 265; makefile: 26; sh: 19
file content (21 lines) | stat: -rw-r--r-- 1,003 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

set -e

export GEM_HOME=/tmp/jruby_gems

mkdir -p "${GEM_HOME}/gems" "${GEM_HOME}/specifications"

for gem in concurrent-ruby concurrent-ruby-edge diff-lcs rspec-core rspec-expectations rspec-mocks rspec-support timecop; do
    gem_version=$(find /usr/share/rubygems-integration/all/gems -maxdepth 1 -type d -regex ".*/${gem}-[0-9\.]+" -printf "%f\n")
    echo "installing ${gem_version} gem into temporary GEM_HOME for jruby ..."
    cp -rs "/usr/share/rubygems-integration/all/gems/${gem_version}" "${GEM_HOME}/gems"
    cp -rs "/usr/share/rubygems-integration/all/specifications/${gem_version}.gemspec" "${GEM_HOME}/specifications"
done

if [ "$(dpkg-architecture -qDEB_BUILD_ARCH)" = "armel" ]; then
    # try to avoid timeouts on slow architecture
    sed -i 's,Timeout.timeout(10),Timeout.timeout(30),' spec/concurrent/executor/executor_service_shared.rb
fi

jruby /usr/bin/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb --no-color --backtrace --order defined --format documentation