-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
37 lines (37 loc) · 1.13 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
language: objective-c
os: osx
osx_image:
- xcode11.3
- xcode11.2
- xcode10.3
- xcode10.2 # For iOS 9 support.
env:
- TOOLCHAIN=bazel
- PROJECT="Examples/MDFTestingExample"
jobs:
include:
- name: "pod lib lint"
osx_image: xcode11.3
env: TOOLCHAIN=cocoapods
before_install:
- if [ "$TOOLCHAIN" == "bazel" ]; then
wget -O bazelisk "https://github.com/bazelbuild/bazelisk/releases/download/v1.2.1/bazelisk-darwin-amd64";
if [ "$(cat bazelisk | openssl sha256 -sha256)" != "edeeebb65f4757c802cd7a479fb86622c3de46a0fa313e6bcbc2efdd37a588b3" ]; then
echo "Bazelisk SHA mismatch.";
exit 1;
fi;
chmod +x "bazelisk";
fi
script:
- if [ "$TOOLCHAIN" == "bazel" ]; then
./bazelisk test //...;
elif [ "$TOOLCHAIN" == "cocoapods" ]; then
pod lib lint;
elif [ "$PROJECT" == "Examples/MDFTestingExample" ]; then
set -o pipefail;
pod install --project-directory=Examples;
xcodebuild build
-workspace "$PROJECT.xcworkspace"
-scheme MDFTestingExample
-destination "platform=iOS Simulator,name=iPhone Xs Max,OS=12.2" | xcpretty;
fi