Created
June 13, 2017 00:03
-
-
Save santiq/8d76c2e9ef7a573728b8a93c54d1f425 to your computer and use it in GitHub Desktop.
Ionic app build automation with circle-ci
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Setup machine | |
machine: | |
java: | |
version: 'oraclejdk8' | |
node: | |
version: v6.10.3 | |
ruby: | |
version: 2.1.2 | |
environment: | |
ANDROID_HOME: /usr/local/android-sdk-linux | |
## Setup dependencies | |
dependencies: | |
pre: | |
- npm install -g ionic cordova | |
- echo y | android update sdk --no-ui --all --filter tools,platform-tools,extra-google-m2repository,extra-google-google_play_services,extra-android-support,extra-android-m2repository,android-25 | |
- echo y | android update sdk --no-ui --all --filter build-tools-25.0.0 | |
cache_directories: | |
- /usr/local/android-sdk-linux/tools | |
- /usr/local/android-sdk-linux/build-tools/24.0.1 | |
post: | |
- mkdir www | |
- ionic cordova platform add android -Y --noresources | |
test: | |
pre: | |
- npm install | |
override: | |
- ionic cordova build android -Y | |
- cp -r platforms/android/build/outputs/apk $CIRCLE_ARTIFACTS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment