Install all needed gems to run the tests:
bundle update
Run the tests:
bundle exec rake
To perform Linux testing, for example when Travis fails, use docker to create run Linux locally:
docker pull ruby
From the directory containing the source code run the following docker command:
docker run -it --rm --volume `pwd`:/src ruby bash
Docker should open a shell into which the following commands can be run:
cd /src
gem install bundler
bundle update
rake
To test using an older Alpine Linux distribution
docker pull 2.3-alpine3.7
From the directory containing the source code run the following docker command:
docker run -it --rm --volume `pwd`:/src 2.3-alpine3.7 sh
Docker should open a shell into which the following commands can be run:
apk add alpine-sdk
cd /src
gem install bundler
bundle update
rake