Skip to content

Commit e7f534b

Browse files
authored
Fix travis script
1 parent b841da5 commit e7f534b

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

.travis.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,28 @@
11
os:
22
- linux
3+
dist: focal # Use Ubuntu Focal (20.04) for a more up-to-date environment
34
sudo: false
5+
46
addons:
57
apt:
68
sources:
79
- ubuntu-toolchain-r-test
810
packages:
911
- libstdc++6
1012
- fonts-droid-fallback
13+
1114
before_script:
12-
- git clone https://github.com/flutter/flutter.git -b beta
13-
- ./flutter/bin/flutter doctor
15+
# Clone the Flutter repository and ensure proper initialization
16+
- git clone https://github.com/flutter/flutter.git -b stable # Use stable instead of beta for reliability
17+
- export PATH="$PATH:`pwd`/flutter/bin" # Add Flutter to PATH
18+
- flutter --version # Verify Flutter installation
19+
- flutter precache # Precache necessary artifacts for the Flutter SDK
20+
- flutter doctor # Verify the Flutter environment
21+
1422
script:
15-
- ./flutter/bin/flutter test
23+
- flutter test # Run Flutter tests
24+
1625
cache:
1726
directories:
18-
- $HOME/.pub-cache
27+
- $HOME/.pub-cache # Cache the pub packages
28+
- flutter # Cache the Flutter SDK

0 commit comments

Comments
 (0)