forked from openedx-unsupported/edx-app-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
36 lines (30 loc) · 1.24 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
language: objective-c
osx_image: xcode8.3
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 "simulator" --args -CurrentDeviceUDID
- set -o pipefail
- travis_retry ./gradlew -q $TEST_TASK | xcpretty -c
after_success:
- bash <(curl -s https://codecov.io/bash)
- if [ $TRAVIS_BRANCH == "master" ]; then
pip install virtualenv;
virtualenv ~/env;
source ~/env/bin/activate;
pip install transifex-client;
sudo echo $'[https://www.transifex.com]\nhostname = https://www.transifex.com\nusername = '"$TRANSIFEX_USER"$'\npassword = '"$TRANSIFEX_PASSWORD"$'\ntoken = '"$TRANSIFEX_API_TOKEN"$'\n' > ~/.transifexrc;
tx push --source --no-interactive;
fi
- sleep 5 # https://github.com/travis-ci/travis-ci/issues/4725
branches:
only:
- /.*/
notifications:
email: true