Skip to content

Instantly share code, notes, and snippets.

@santiq
Created June 13, 2017 00:03
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save santiq/8d76c2e9ef7a573728b8a93c54d1f425 to your computer and use it in GitHub Desktop.
Save santiq/8d76c2e9ef7a573728b8a93c54d1f425 to your computer and use it in GitHub Desktop.
Ionic app build automation with circle-ci
## 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