7
7
env : All unit and widget tests
8
8
before_script :
9
9
- sudo apt-get install -y --no-install-recommends lib32stdc++6 libstdc++6 > /dev/null
10
- - git clone https://github.com/flutter/flutter.git -b stable
10
+
11
+ # - git clone https://github.com/flutter/flutter.git -b stable
12
+ # - flutter precache
13
+
14
+ # install pre-compiled flutter
15
+ - FLUTTER_CHANNEL=stable
16
+ - FLUTTER_VERSION=1.0.0-${FLUTTER_CHANNEL}
17
+ - wget --quiet --output-document=flutter.tar.xz https://storage.googleapis.com/flutter_infra/releases/${FLUTTER_CHANNEL}/linux/flutter_linux_v${FLUTTER_VERSION}.tar.xz && tar xf flutter.tar.xz > /dev/null && rm flutter.tar.xz
11
18
- export PATH="$PATH":"$HOME/.pub-cache/bin"
12
- - export PATH=`pwd`/flutter/bin:`pwd`/flutter/bin/cache/dart-sdk/bin:$PATH
13
- - flutter precache
19
+ - export PATH=$PWD/flutter/bin:$PWD/flutter/bin/cache/dart-sdk/bin:$PATH
14
20
- flutter doctor -v
15
21
- pub global activate coverage
16
22
script : ./scripts/runTests.sh
17
23
after_success : bash <(curl -s https://codecov.io/bash) -f lcov.info
24
+ cache :
25
+ directories :
26
+ - $HOME/.pub-cache
18
27
19
28
- &integration-test-staging
20
29
stage : Integration Testing
@@ -51,17 +60,28 @@ jobs:
51
60
- sdkmanager --list | head -15
52
61
- echo no | avdmanager create avd --force -n test -k "system-images;android-$EMULATOR_API_LEVEL;$ANDROID_ABI"
53
62
- $ANDROID_HOME/emulator/emulator -avd test -no-audio -no-window -gpu swiftshader &
54
- # install flutter
55
- - git clone https://github.com/flutter/flutter.git -b stable
63
+
64
+ # - git clone https://github.com/flutter/flutter.git -b stable
65
+ # - flutter precache
66
+
67
+ # install pre-compiled flutter
68
+ - FLUTTER_CHANNEL=stable
69
+ - FLUTTER_VERSION=1.0.0-${FLUTTER_CHANNEL}
70
+ - wget --quiet --output-document=flutter.tar.xz https://storage.googleapis.com/flutter_infra/releases/${FLUTTER_CHANNEL}/linux/flutter_linux_v${FLUTTER_VERSION}.tar.xz && tar xf flutter.tar.xz > /dev/null && rm flutter.tar.xz
56
71
- export PATH="$PATH":"$HOME/.pub-cache/bin"
57
- - export PATH=`pwd`/flutter/bin:`pwd`/flutter/bin/cache/dart-sdk/bin:$PATH
58
- - flutter precache
72
+ - export PATH=$PWD/flutter/bin:$PWD/flutter/bin/cache/dart-sdk/bin:$PATH
59
73
- flutter doctor -v
74
+
60
75
# Wait for emulator to finish startup.
61
76
- ./scripts/android-wait-for-emulator.sh
62
77
- adb shell input keyevent 82
63
78
- flutter devices
64
79
script : travis_retry ./scripts/ci.sh ./example/bloc_flutter
80
+ cache :
81
+ directories :
82
+ - $HOME/.pub-cache
83
+ - $HOME/.gradle
84
+
65
85
- << : *integration-test-staging
66
86
os : osx
67
87
# use oldest flutter supported version of xcode
@@ -70,19 +90,31 @@ jobs:
70
90
# Run integration tests on ios
71
91
before_install : &before_install_osx
72
92
- open /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app
73
- - brew update
93
+ # skip homebrew update
94
+ - export HOMEBREW_NO_AUTO_UPDATE=1
95
+ # - brew update
74
96
- brew install libimobiledevice
75
97
- brew install ideviceinstaller
76
98
- brew install ios-deploy
77
99
- brew install cocoapods || echo 'ignore exit(1)'
78
100
- brew link --overwrite cocoapods
79
- - git clone https://github.com/flutter/flutter.git -b stable
101
+
102
+ # - git clone https://github.com/flutter/flutter.git -b stable
103
+ # - flutter precache
104
+
105
+ # install pre-compiled flutter
106
+ - FLUTTER_CHANNEL=stable
107
+ - FLUTTER_VERSION=1.0.0-${FLUTTER_CHANNEL}
108
+ - wget --quiet --output-document=flutter.zip https://storage.googleapis.com/flutter_infra/releases/${FLUTTER_CHANNEL}/macos/flutter_macos_v${FLUTTER_VERSION}.zip && unzip -qq flutter.zip > /dev/null && rm flutter.zip
80
109
- export PATH="$PATH":"$HOME/.pub-cache/bin"
81
- - export PATH=`pwd`/flutter/bin:`pwd`/flutter/bin/cache/dart-sdk/bin:$PATH
82
- - flutter precache
110
+ - export PATH=$PWD/flutter/bin:$PWD/flutter/bin/cache/dart-sdk/bin:$PATH
83
111
- flutter doctor -v
84
112
- flutter devices
85
113
script : travis_retry ./scripts/ci.sh ./example/bloc_flutter
114
+ cache :
115
+ directories :
116
+ - $HOME/.pub-cache
117
+
86
118
- << : *integration-test-staging
87
119
os : linux
88
120
env : built_redux_android
0 commit comments