Travis: Cache the flutter repo

This commit is contained in:
Vishesh Handa
2019-01-18 17:53:36 +01:00
parent 7594f139b9
commit 33f32ae786

View File

@ -11,12 +11,13 @@ addons:
packages: packages:
- lib32stdc++6 - lib32stdc++6
install: install:
- cd /tmp/ - cd $HOME
- git clone https://github.com/flutter/flutter.git -b beta - git clone https://github.com/flutter/flutter.git -b beta
- ./flutter/bin/flutter doctor - ./flutter/bin/flutter doctor
- cd - - cd -
script: script:
- /tmp/flutter/bin/flutter $COMMAND - $HOME/flutter/bin/flutter $COMMAND
cache: cache:
directories: directories:
- $HOME/.pub-cache - $HOME/.pub-cache
- $HOME/flutter