-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
40 lines (30 loc) · 1.28 KB
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
default: gen lint
gen:
flutter pub get
flutter_rust_bridge_codegen
lint:
cd rust && cargo fmt
dart format .
clean:
flutter clean
cd rust && cargo clean
serve *args='':
flutter pub run flutter_rust_bridge:serve {{args}}
take_automated_screenshot:
#!/usr/bin/env bash
set -eu
# 'flutter drive' seems to delete app data at the end of the run
# So be sure to copy some mock data before every 'flutter drive'
# Make sur the file/ folder does not exist, otherwise adb push create files/basic/to_publish instead of files/to_publish
adb shell 'rm -rf /storage/emulated/0/Android/data/fr.pimoid.booky.drive.debug/files/'
adb push extra/mock_data/basic/ /storage/emulated/0/Android/data/fr.pimoid.booky.drive.debug/files/
export screenshot_dir=real_android_device_$(date +"%Y-%m-%d_%H-%M-%S")
ln -s --force --no-dereference $screenshot_dir screenshots/last_screenshots
flutter drive --driver=test_driver/screenshot_test.dart --target=integration_test/extended_test.dart --flavor=drive
test_screenshots +device_ids:
echo {{device_ids}}
cd test/tester && cargo run {{device_ids}}
test:
/home/julien/Android/Sdk/platform-tools/adb devices -l
just test_screenshots Pixel_6_API_29 Pixel_C_API_29_13inch
# vim:expandtab:sw=4:ts=4