-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (45 loc) · 1.37 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
os: osx
osx_image: xcode8.3
sudo: false
language: node_js
node_js: '8'
env:
global:
- HOMEBREW_NO_AUTO_UPDATE=1
- USE_SDK_WRAPPER=true
- ANDROID_HOME=/usr/local/share/android-sdk
- ANDROID_NDK_HOME=/usr/local/share/android-ndk
- ANDROID_SDK_ROOT=/usr/local/share/android-sdk
- WINEDLLOVERRIDES="mscoree,mshtml="
- WINEDEBUG="-all"
cache:
yarn: true
directories:
- node_modules
- "$HOME/.npm/_prebuilds"
- "$HOME/.cache/yarn"
- "$HOME/Library/Caches/Homebrew"
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.10.1
- export PATH="$HOME/.yarn/bin:$PATH"
- npm install wine-darwin@1.9.17-1
- yarn wine hostname
- brew install ant gradle
- brew cask install android-sdk android-ndk
- android update sdk > /dev/null
- sdkmanager "platform-tools" "platforms;android-27" > /dev/null
- npm install -g cordova ios-deploy
- git clone https://github.com/Barnstorm-Online/Dashboard .quasar-app && cd .quasar-app && git submodule update --init --recursive
- cd src-cordova
- npm install
- cordova platform add android
- cordova platform add ios
- cordova requirements
- cd ../
install:
- yarn
script:
- yarn build-mobile
after_success:
- curl -X POST -d 'data={"platforms":["android"]}' "https://build.phonegap.com/api/v1/apps/3346276/build?auth_token=$PHONEGAP_AUTH"
if: branch = master