1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
language: ruby
os:
- linux
- osx
rvm:
- 2.0.0
- 1.9.3
cache:
- bundler
- apt
addons:
apt:
packages:
- libopenmpi-dev
- openmpi-bin
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install open-mpi; fi
before_script:
- bundle exec rake compile
env:
- JRUBY_OPTS=-Xcext.enabled=true
script:
- bundle exec mpirun -n 2 rspec
- bundle exec mpirun -n 2 ruby -Ilib samples/hello.rb
- bundle exec mpirun -n 2 ruby -Ilib samples/narray.rb
- bundle exec mpirun -n 2 ruby -Ilib samples/narray_offset.rb
|