-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
53 lines (50 loc) · 1.85 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
47
48
49
50
51
52
53
os: osx
osx_image: xcode8.3
sudo: false
language: objective-c
cache:
- cocoapods
env:
- NODE_VERSION="6" NPM_VERSION="3" TNS_VERSION="3.0.0"
- NODE_VERSION="7" NPM_VERSION="3" TNS_VERSION="3.0.0"
script:
- export ANDROID_HOME=/usr/local/share/android-sdk
- export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
- npm run build
#- npm run test
#- npm run e2e
before_install:
- export ANDROID_HOME=/usr/local/share/android-sdk
- export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
- wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh | bash
- source ~/.nvm/nvm.sh && nvm install $NODE_VERSION && nvm use $NODE_VERSION
- PATH="`npm bin`:`npm bin -g`:$PATH"
- brew update > /dev/null;
- brew install Caskroom/cask/android-sdk
- echo y | sdkmanager 'tools'
- echo y | sdkmanager 'platform-tools'
- echo y | sdkmanager 'build-tools;25.0.2'
- echo y | sdkmanager 'platforms;android-25'
- echo y | sdkmanager 'extras;android;m2repository'
- echo y | sdkmanager 'extras;google;google_play_services'
- echo y | sdkmanager 'extras;google;m2repository'
- mkdir "$ANDROID_HOME/licenses" || true
- echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > "$ANDROID_HOME/licenses/android-sdk-license"
- echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd" > "$ANDROID_HOME/licenses/android-sdk-preview-license"
- npm install -g npm@$NPM_VERSION
- npm install -g nativescript@$TNS_VERSION
- npm install
# CocoaPods
- gem install cocoapods --pre --no-rdoc --no-ri --no-document --quiet
- gem install xcpretty --no-rdoc --no-ri --no-document --quiet
- pod --version
- pod setup --silent
- pod repo update --silent
# Show environment invo
- node --version
- npm --version
- xcpretty --version
- xcodebuild -version
- xcodebuild -showsdks
- echo $ANDROID_HOME
- npm run clean