diff --git a/.travis.yaml b/.travis.yaml new file mode 100644 index 0000000..b4d9ca2 --- /dev/null +++ b/.travis.yaml @@ -0,0 +1,25 @@ +os: + - linux +sudo: false +addons: + apt: + # Flutter depends on /usr/lib/x86_64-linux-gnu/libstdc++.so.6 version GLIBCXX_3.4.18 + sources: + - ubuntu-toolchain-r-test # If we don't specify this, the libstdc++6 we get is the wrong version + packages: + - libstdc++6 + - fonts-droid +before_script: + - git clone https://github.com/flutter/flutter.git -b alpha --depth 1 + - ./flutter/bin/flutter doctor +script: + - ./flutter/bin/flutter test + +deploy: + - if [ "$TRAVIS_BRANCH" == "master" ]; then + flutter build apk + fi + +cache: + directories: + - $HOME/.pub-cache \ No newline at end of file