-
Notifications
You must be signed in to change notification settings - Fork 11
/
.travis_ios.yml
56 lines (42 loc) · 1.63 KB
/
.travis_ios.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
47
48
49
50
51
52
53
54
55
56
sudo: false
language: objective-c
os: osx
osx_image: xcode7.2
cache: false
before_install:
- export LANG=en_US.UTF-8
- brew update
install:
# install minimum set of dependencies to run tests and linters
- npm install -g npm gulp bower
before_script:
# update npm and bower dependencies
- npm install
- bower update
# run linters and tests
# if fails then build process stops
# - gulp test
script:
# install android SDK
- wget http://dl.google.com/android/android-sdk_r24.4-macosx.zip
- tar -xvf android-sdk_r24.4-macosx.zip
- echo y | ./android-sdk-macosx/tools/android update sdk --no-ui --all --filter platform-tools
- echo y | ./android-sdk-macosx/tools/android update sdk --no-ui --all --filter build-tools-23.0.2
- echo y | ./android-sdk-macosx/tools/android update sdk --no-ui --all --filter android-23
- echo y | ./android-sdk-macosx/tools/android update sdk --no-ui --all --filter extra-android-support
- echo y | ./android-sdk-macosx/tools/android update sdk --no-ui --all --filter extra-android-m2repository
- echo y | ./android-sdk-macosx/tools/android update sdk --no-ui --all --filter extra-google-m2repository
- export ANDROID_HOME=./android-sdk-macosx
- export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$ANDROID_HOME/build-tools/23.0.2
# install build dependecies
- npm install -g cordova ionic
# - install plugins etc.
- cordova prepare
# build Android and iOS packages
- cordova build android --release
- cordova build ios --device --release
after_success:
# generate documentation
# - gulp doc
deploy:
# deploy build to s3, testflight etc.