Skip to content

fix travis build #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 5 additions & 22 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ android:
- tools # to get the new `repository-11.xml`
- tools # see https://github.com/travis-ci/travis-ci/issues/6040#issuecomment-219367943)
- platform-tools
- build-tools-24.0.2
- android-24
node_js:
- "8.1.1"
- build-tools-25.0.2
- android-25
- extra-android-m2repository

jdk:
- oraclejdk8
Expand All @@ -24,29 +23,13 @@ notifications:
rooms:
- csploit:BYr15dcnal0Dm6UZRafBqWSC#travis

branches:
only:
- master

install:
- nvm install 8.1.1
- nvm use 8.1.1
- npm install -g npm
- cd app
- npm cache clean
- npm install
- npm install -g cordova
- echo y | android update sdk --no-ui --all --filter android-24
- npm run build
- cd ..

before_script:
- cordova platform rm android
- cordova platform add android

script:
- cordova prepare
- cordova build android --release -- --ant
- npm install
- npm run build

release:
- exit 0