# Use macOS with XCode 8.3
os: osx
osx_image: xcode8.3

# Use Node 7.x and yarn
language: node_js
node_js:
  - "7"
cache: yarn

install:
# Set up RVM, RubyGems, Bundler
  - gpg2 --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
  - rvm get head
  - rvm install 2.3.4
  - rvm use 2.3.4 --default
  - gem update --system
  - gem install bundler
  - bundle install
# Install NPM deps
  - yarn

script:
  # Requires Android SDK
  # - bundle exec fastlane test_android
  - bundle exec fastlane test_ios
  - npm test

# Use macOS with XCode 8.3
os: osx
osx_image: xcode8.3

# Use Node 7.x and yarn
language: node_js
node_js:
  - "7"
cache: yarn

install:
# Set up RVM, RubyGems, Bundler
  - gpg2 --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
  - rvm get head
  - rvm install 2.4.0
  - rvm use 2.4.0 --default
  - gem update --system
  - gem install bundler
  - bundle install
# Install NPM deps
  - yarn

script:
  # Requires Android SDK
  # - bundle exec fastlane test_android
  - bundle exec fastlane test_ios
  - npm test

Use Ruby 2.4.0. 2.3.4 and 2.4.1 are both still so recent that there's no precompiled Ruby available via RVM. This takes 6-7 min. off the overall CI job time.
Use Ruby 2.4.0. 2.3.4 and 2.4.1 are both still so recent that there's no precompiled Ruby available via RVM. This takes 6-7 min. off the overall CI job time.
