forked from crazyants/Wexflow
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
46 lines (44 loc) · 1.65 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
40
41
42
43
44
45
46
jobs:
include:
- stage: "Android"
name: "Android build"
language: android
jdk:
- oraclejdk8
branches:
only:
- master
before_install:
- cd src/android
- gradle -b wrapper.gradle wrapper
- pwd
- ls -la .
- sudo chmod +x gradlew
#- sudo apt-get update -qq
#- sudo apt-get install ant
install:
# Let's use the new command 'sdkmanager' to install Android SDK components
- yes | sdkmanager --verbose "build-tools;26.0.3"
- yes | sdkmanager --verbose "platform-tools"
- yes | sdkmanager --verbose "tools"
- yes | sdkmanager --verbose "platforms;android-26"
- yes | sdkmanager --verbose "system-images;android-24;default;armeabi-v7a"
# Check tools and dependencies installed
- yes | sdkmanager --list
# On the other hand, Travis still uses 'android' command behind the 'components' section update.
# That command is obsolete and cannot update Android SDK Tools after 25.2.5.
# Let's solve it here with the new command 'sdkmanager'
- yes | sdkmanager --verbose tools
script:
- ./gradlew clean build
env:
matrix:
- ANDROID_TARGET=android-26 ANDROID_ABI=armeabi-v7a
- stage: "iOS"
name: "iOS build"
language: swift
osx_image: xcode8.3
script:
- xcodebuild clean build -project "src/ios/Wexflow.xcodeproj" -scheme "Wexflow" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
notifications:
email: akram.elassas@gmail.com