version: 2 jobs: build: docker: - image: cirrusci/flutter:v1.13.6 branches: only: master steps: - checkout - run: name: Run Flutter doctor command: flutter doctor - run: name: Run the application tests command: flutter test - run: echo $ENCODED_KEYSTORE | base64 --decode >> ${HOME}/keystore.jks - run: echo 'export KEYSTORE=${HOME}/keystore.jks' >> $BASH_ENV - run: name: Build the Android version command: flutter build apk - store_artifacts: path: build/app/outputs/apk/release/app-release.apk