forked from liferay/liferay-screens
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
39 lines (36 loc) · 1.32 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
38
39
language: objective-c
osx_image: xcode8
sudo: false
env:
matrix:
- PLATFORM=iOS
- PLATFORM=Android
global:
- ADB_INSTALL_TIMEOUT=10
cache:
directories:
- $HOME/android/library/.gradle/
podfile: ios/Framework
before_script:
- |
if [ "$PLATFORM" = Android ]; then
export LICENSES="android-sdk-license-5be876d5|mips-android-sysimage-license-15de68cc|intel-android-sysimage-license-1ea702d1|android-sdk-license-ed0d0a5b|android-sdk-license-c81a61d9"
export COMPONENTS=build-tools-23.0.3,android-23,extra-android-m2repository,extra-google-m2repository
curl -L https://raw.github.com/embarkmobile/android-sdk-installer/version-2/android-sdk-installer | bash /dev/stdin --install=$COMPONENTS --accept=$LICENSES && source ~/.android-sdk-installer/env
elif [ "$PLATFORM" = iOS ]; then
gem install cocoapods --version 1.1.0.rc.3
pod repo update > /dev/null
fi
script:
- |
if [ "$PLATFORM" = Android ]; then
cd android
sh gradlew clean
sh gradlew assembleTravisci
sh gradlew test
elif [ "$PLATFORM" = iOS ]; then
cd ios/Framework
pod install
set -o pipefail
xcodebuild clean test -workspace LiferayScreens.xcworkspace -scheme LiferayScreens -destination "platform=iOS Simulator,name=iPhone SE" | xcpretty
fi