# Use macOS with XCode 10
os: osx
osx_image: xcode10

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

install:
# Set up RVM, RubyGems, Bundler
  - rvm install 2.6.3
  - rvm use 2.6.3 --default
  - gem update --system
  - gem install bundler
  - bundle check || bundle install
# Install NPM deps
  - yarn

script:
  # Requires Android SDK
  # - bundle exec fastlane android test
  # scan failing in Fastlane runs
  # - bundle exec fastlane ios test
  - yarn lint
  # Pending update to jest
  # - yarn test

# Use macOS with XCode 10
os: osx
osx_image: xcode10

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

install:
# Set up RVM, RubyGems, Bundler
  # - rvm install 2.6.3
  # Use 2.4.3, the most recent preinstalled on Travis
  # (also no longer receiving bug fixes, only security updates).
  - rvm use 2.4.3 --default
  - gem update --system
  - gem install bundler
  - bundle check || bundle install
# Install NPM deps
  - yarn

script:
  # Requires Android SDK
  # - bundle exec fastlane android test
  # scan failing in Fastlane runs
  # - bundle exec fastlane ios test
  - yarn lint
  # Pending update to jest
  # - yarn test

Use Ruby 2.4.3 with Travis, the latest prebuilt version they provide, for more stable CI.
Use Ruby 2.4.3 with Travis, the latest prebuilt version they provide, for more stable CI.
