Skip to content
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

Added Travis CI with fastlane #8

Closed
wants to merge 13 commits into from
30 changes: 30 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
jobs:
include:
- os: linux
name: Android
language: android
android:
components:
- tools
- platform-tools
- build-tools-28.0.3
- android-29
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- libstdc++6
- fonts-droid
before_install:
- echo "yes | sudo sdkmanager --licenses"
install:
- sudo apt-get install -y --no-install-recommends lib32stdc++6 libstdc++6 > /dev/null
- git clone https://github.com/flutter/flutter.git -b stable
- export PATH=$PWD/flutter/bin:$PWD/flutter/bin/cache/dart-sdk/bin:$PATH
- flutter doctor
- gem install bundler
- cd android && bundler install && cd ..
script:
- sudo chmod 777 ./deploy/android.sh
- ./deploy/android.sh
4 changes: 4 additions & 0 deletions deploy/android.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
flutter build appbundle --flavor master --build-number $TRAVIS_BUILD_NUMBER
cd android
bundle exec fastlane deploy