-
Notifications
You must be signed in to change notification settings - Fork 683
/
ci-script.sh
executable file
·28 lines (21 loc) · 817 Bytes
/
ci-script.sh
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
#!/usr/bin/env bash
set -o errexit
set -o pipefail
set -o nounset
# Rename tmdb_config.dart.sample file so that the project compiles
(cd core/lib/src && mv tmdb_config.dart.sample tmdb_config.dart)
# Get all packages for core, mobile and web
(cd core && pub get)
(cd web && pub get)
(cd mobile && flutter packages get)
# Analyze core, mobile and web
(cd core && dartanalyzer ./ --fatal-infos --fatal-warnings)
(cd mobile && dartanalyzer ./ --fatal-infos --fatal-warnings)
(cd web && dartanalyzer ./ --fatal-infos --fatal-warnings)
# Run tests for core, mobile and web
echo "--- Running tests in core... ---"
(cd core && pub run test)
echo "--- Running tests in mobile... ---"
(cd mobile && flutter test)
echo "--- Running tests in web... ---"
(cd web && pub run build_runner test --fail-on-severe -- -p chrome)