Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Latest commit

 

History

History
51 lines (34 loc) · 1.08 KB

README.md

File metadata and controls

51 lines (34 loc) · 1.08 KB

Kokoro iOS runner

This repo contains a script for running iOS tests on a kokoro instance.

Usage (xcodebuild)

An example script making use of the xcodebuild kokoro iOS runner:

#!/bin/bash

# Fail on any error.
set -e

if [ ! -d .kokoro-ios-runner ]; then
  git clone https://github.com/material-foundation/kokoro-ios-runner.git .kokoro-ios-runner
fi

pushd .kokoro-ios-runner
git fetch
git checkout v4.3.0
popd

./.kokoro-ios-runner/xcodebuild.sh "MotionInterchange/MotionInterchange.xcodeproj" MotionInterchange "iPhone SE"

bash <(curl -s https://codecov.io/bash)

Usage (bazel)

Learn more about bazel for iOS.

An example script making use of the bazel kokoro iOS runner:

#!/bin/bash

# Fail on any error.
set -e

if [ ! -d .kokoro-ios-runner ]; then
  git clone https://github.com/material-foundation/kokoro-ios-runner.git .kokoro-ios-runner
fi

pushd .kokoro-ios-runner
git fetch
git checkout v4.3.0
popd

./.kokoro-ios-runner/bazel.sh test //:CatalogByConventionTests --min-xcode-version 8.0.0