2020-02-08 06:29:31 -08:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
EXIT_CODE=0
|
|
|
|
|
2021-11-11 05:40:41 -08:00
|
|
|
pushd extras/integration_tests
|
|
|
|
find . -type d -name .dart_tool -exec rm -rf {} \;
|
|
|
|
popd
|
|
|
|
|
2020-02-08 06:29:31 -08:00
|
|
|
pushd extras/integration_tests/vm
|
|
|
|
echo "Running integration tests with moor_ffi & VM"
|
2020-11-20 09:14:39 -08:00
|
|
|
dart pub upgrade
|
|
|
|
dart test || EXIT_CODE=$?
|
2020-02-08 06:29:31 -08:00
|
|
|
popd
|
|
|
|
|
2021-11-11 05:40:41 -08:00
|
|
|
pushd extras/integration_tests/postgres
|
|
|
|
echo "Running integration tests with Postgres"
|
|
|
|
dart pub upgrade
|
|
|
|
dart test || EXIT_CODE=$?
|
|
|
|
popd
|
|
|
|
|
2020-02-08 06:29:31 -08:00
|
|
|
pushd extras/with_built_value
|
|
|
|
echo "Running build runner in with_built_value"
|
2020-11-20 09:14:39 -08:00
|
|
|
dart pub upgrade
|
|
|
|
dart run build_runner build --delete-conflicting-outputs || EXIT_CODE=$?
|
2020-02-08 06:29:31 -08:00
|
|
|
popd
|
|
|
|
|
2022-01-19 10:55:19 -08:00
|
|
|
pushd extras/migrations_example
|
|
|
|
echo "Testing migrations in migrations_example"
|
|
|
|
dart pub upgrade
|
|
|
|
dart test
|
|
|
|
popd
|
|
|
|
|
2021-11-11 05:40:41 -08:00
|
|
|
exit $EXIT_CODE
|