После многих испытаний и документов я нашел способ добиться этого. Это файл .travis.yml:
matrix:
include:
- language: objective-c
os: osx
xcode_workspace: '../ios/YourProject.xcworkspace'
xcode_scheme: YourProject
xcode_sdk: iphonesimulator9.0
osx_image: xcode10.1
podfile: ios/Podfile
node_js: false
sudo: true
before_install:
- echo "before_install"
install:
- echo "install"
script:
- echo "script"
- language: android
android:
components:
- tools
- platform-tools
sudo: true
before_install:
- echo "android before_install"
install:
- echo "android install"
script:
- echo "android script"
- if: branch = master
language: node_js
node_js: lts/*
install: true
script: echo "MASTER BRANCH"