Skip to content

Commit

Permalink
Add CircleCI config
Browse files Browse the repository at this point in the history
  • Loading branch information
strund3r committed Nov 26, 2019
1 parent 70fb55e commit 50f2d0b
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
version: 2.1
jobs:
build:
docker:
- image: circleci/android:api-28-node
working_directory: ~/mobile
environment:
JVM_OPTS: -Xmx3200m
steps:
- checkout
- run:
name: "Install gradle"
command: |
wget https://services.gradle.org/distributions/gradle-6.0.1-bin.zip -P /tmp
sudo unzip -d /opt/gradle /tmp/gradle-*.zip
echo 'export GRADLE_HOME=/opt/gradle/gradle-6.0.1' >> $BASH_ENV
echo 'export PATH=$PATH:/opt/gradle/gradle-6.0.1/bin' >> $BASH_ENV
source $BASH_ENV
- run:
name: "Install ionic and cordova"
command: |
sudo npm install -g ionic cordova yarn
- run:
name: "Install npm packages"
command: |
yarn install
- run:
name: "Install Cordova plugins and add android platform"
command: |
ionic cordova platform add android --noresources
ionic config set -g telemetry true
- run:
name: "Generate apk"
command: |
ionic cordova build android --verbose
mkdir -p /tmp/apk
cp -r platforms/android/app/build/outputs/apk/debug/app-debug.apk /tmp/apk
- store_artifacts:
path: /tmp/apk
destination: apks

workflows:
version: 2
build_and_deploy:
jobs:
- build: # run tests
filters:
branches:
only:
- master

0 comments on commit 50f2d0b

Please sign in to comment.