-
Notifications
You must be signed in to change notification settings - Fork 23
/
.travis-ios.yml
59 lines (45 loc) · 1.67 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
57
58
59
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
- npm install -g gulp
- npm install -g 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
- npm install -g ionic
# - install plugins etc.
- ionic state restore
# build Android and iOS packages
- ionic build android --debug
- ionic build ios --device --debug
after_success:
# generate documentation
- gulp doc
deploy:
# deploy build to s3, testflight etc.