From 06ea759fcaf0e070c1cde734c3c991a539c7327a Mon Sep 17 00:00:00 2001 From: Emily Toop Date: Tue, 7 Aug 2018 15:04:38 +0100 Subject: [PATCH] Add iOS build task --- .travis.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.travis.yml b/.travis.yml index 6f28e0fb..b4a7b808 100644 --- a/.travis.yml +++ b/.travis.yml @@ -80,3 +80,19 @@ matrix: - cd sdks/android/Mentat - ./gradlew --no-daemon clean :library:assemble :library:test :library:lint - cd ../../.. + - language: rust + dist: trusty + rust: stable + os: osx + before_install: + - PKG_OS="darwin"; + install: + - | + rustup target add aarch64-apple-ios armv7-apple-ios armv7s-apple-ios x86_64-apple-ios i386-apple-ios + cargo install cargo-lipo + script: + - ./scripts/ios_build.sh + - | + cd sdks/swift/Mentat + xcodebuild -configuration Debug -scheme "Mentat Debug" -sdk iphonesimulator test -destination 'platform=iOS Simulator,name=iPhone SE,OS=latest' | xcpretty + cd ../../..