Test on multiple rubies: system (2.0.0), 2.1.*, 2.2.*, 2.3.* Runs builds on macOS in preperation for Xcode integration testing.
28 lines
806 B
YAML
28 lines
806 B
YAML
machine:
|
|
environment:
|
|
BUNDLE_INSTALL_PATH: "./vendor/bundle" # circle caches this by default
|
|
TEST_RUBIES: "system 2.1 2.2 2.3"
|
|
xcode:
|
|
version: "8.2"
|
|
|
|
dependencies:
|
|
override:
|
|
- >
|
|
for v in $TEST_RUBIES; do
|
|
echo
|
|
echo "****************************************"
|
|
echo "Installing gems on Ruby version: $v"
|
|
echo "****************************************"
|
|
chruby-exec $v -- bundle install --path $BUNDLE_INSTALL_PATH
|
|
done
|
|
|
|
test:
|
|
override:
|
|
- >
|
|
for v in $TEST_RUBIES; do
|
|
echo
|
|
echo "*******************************"
|
|
echo "Testing on Ruby version: $v"
|
|
echo "********************************"
|
|
chruby-exec $v -- bundle exec rake test TESTOPTS="--ci-dir=$CIRCLE_TEST_REPORTS/reports"
|
|
done
|