forked from openedx-unsupported/edx-app-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
27 lines (21 loc) · 817 Bytes
/
.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
language: objective-c
osx_image: xcode10.1
before_script:
- rvm get head || true # https://github.com/travis-ci/travis-ci/issues/6307
env:
matrix:
- TEST_TASK=testLTRCurrentOS IOS_VERSION=10.0
- TEST_TASK=testRTLCurrentOS IOS_VERSION=10.0
- TEST_TASK=testLTRPreviousOS IOS_VERSION=9.0
- TEST_TASK=testRTLPreviousOS IOS_VERSION=9.0
script:
- instruments -s devices | grep "iPhone 5s (${IOS_VERSION}" | awk -F '[\[]' '{print $2}' | sed 's/.$//' | xargs open -a /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app --args -CurrentDeviceUDID
- set -o pipefail
- travis_retry ./gradlew -q $TEST_TASK | xcpretty -c
after_success:
- bash <(curl -s https://codecov.io/bash)
branches:
only:
- master
notifications:
email: true