diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..b0e2e012 --- /dev/null +++ b/.travis.yml @@ -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 \ No newline at end of file diff --git a/deploy/android.sh b/deploy/android.sh new file mode 100644 index 00000000..ed03b4cf --- /dev/null +++ b/deploy/android.sh @@ -0,0 +1,4 @@ +#!/bin/sh +flutter build appbundle --flavor master --build-number $TRAVIS_BUILD_NUMBER +cd android +bundle exec fastlane deploy \ No newline at end of file